public interface SessionOpenRequest extends Request
| Modifier and Type | Method and Description |
|---|---|
Transaction |
getTransaction()
Get the inflowed transaction of the request.
|
boolean |
hasTransaction()
Determine if the request has a transaction.
|
convertToStateful, getEJBIdentifier, getLocalAddress, getPeerAddress, getProtocol, getProviderInterface, getRequestExecutor, getSecurityIdentity, isBlockingCaller, writeCancelResponse, writeException, writeNoSuchEJB, writeNotStateful, writeWrongViewTypeboolean hasTransaction()
true if there is a transaction context with this requestTransaction getTransaction() throws SystemException, IllegalStateException
hasTransaction() first. This method should only be called one time
as it will inflow the transaction when called.
If a transaction is present but transaction inflow has failed, a SystemException is thrown. In this case,
the invocation should fail.
It is the caller's responsibility to check the status of the returned transaction to ensure that it is in an active state; failure to do so can result in undesirable behavior.
null if there is none for the requestSystemException - if inflowing the transaction failedIllegalStateException - if this method is called more than one timeCopyright © 2017 JBoss by Red Hat. All rights reserved.