public final class EJBClientUserTransactionContext extends EJBClientTransactionContext
Constructor and Description |
---|
EJBClientUserTransactionContext() |
Modifier and Type | Method and Description |
---|---|
protected UserTransactionID |
getAssociatedTransactionID(EJBClientInvocationContext invocationContext)
Get the transaction ID to associate with the invocation.
|
protected String |
getTransactionNode()
Get the node to which this transaction is pinned, if any.
|
protected UserTransaction |
getUserTransaction(String nodeName)
Get a
UserTransaction instance affiliated with a specific remote node to control the transaction
state. |
create, createLocal, getCurrent, requireCurrent, setGlobalContext, setSelector
getAttachment, putAttachment, putAttachmentIfAbsent, removeAttachment, removeAttachment, replaceAttachment, replaceAttachment
protected UserTransactionID getAssociatedTransactionID(EJBClientInvocationContext invocationContext)
getAssociatedTransactionID
in class EJBClientTransactionContext
invocationContext
- the invocation contextnull
for noneprotected String getTransactionNode()
EJBClientTransactionContext
getTransactionNode
in class EJBClientTransactionContext
null
if the transaction is not pinnedprotected UserTransaction getUserTransaction(String nodeName)
UserTransaction
instance affiliated with a specific remote node to control the transaction
state. The instance is only usable while there is an active connection with the given peer.getUserTransaction
in class EJBClientTransactionContext
nodeName
- the remote node nameCopyright © 2012 JBoss by Red Hat. All Rights Reserved.