org.jboss.ejb.client
Class EJBClientUserTransactionContext
java.lang.Object
org.jboss.ejb.client.Attachable
org.jboss.ejb.client.EJBClientTransactionContext
org.jboss.ejb.client.EJBClientUserTransactionContext
public final class EJBClientUserTransactionContext
- extends EJBClientTransactionContext
The transaction context for manual control of transactions on a remote node.
- Author:
- David M. Lloyd
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EJBClientUserTransactionContext
public EJBClientUserTransactionContext()
getAssociatedTransactionID
protected UserTransactionID getAssociatedTransactionID(EJBClientInvocationContext invocationContext)
- Get the transaction ID to associate with the invocation. The transaction ID typically comes from the current
thread's transaction context.
- Specified by:
getAssociatedTransactionID
in class EJBClientTransactionContext
- Parameters:
invocationContext
- the invocation context
- Returns:
- the transaction ID to associate, or
null
for none
getTransactionNode
protected String getTransactionNode()
- Description copied from class:
EJBClientTransactionContext
- Get the node to which this transaction is pinned, if any.
- Specified by:
getTransactionNode
in class EJBClientTransactionContext
- Returns:
- the node name or
null
if the transaction is not pinned
getUserTransaction
protected UserTransaction getUserTransaction(String nodeName)
- Get a
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.
- Overrides:
getUserTransaction
in class EJBClientTransactionContext
- Parameters:
nodeName
- the remote node name
- Returns:
- the user transaction instance
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.