JBoss EJB client 1.0.5.Final

org.jboss.ejb.client
Class EJBClientUserTransactionContext

java.lang.Object
  extended by org.jboss.ejb.client.Attachable
      extended by org.jboss.ejb.client.EJBClientTransactionContext
          extended by 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

Constructor Summary
EJBClientUserTransactionContext()
           
 
Method Summary
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.
 
Methods inherited from class org.jboss.ejb.client.EJBClientTransactionContext
create, createLocal, getCurrent, requireCurrent, setGlobalContext, setSelector
 
Methods inherited from class org.jboss.ejb.client.Attachable
getAttachment, putAttachment, putAttachmentIfAbsent, removeAttachment, removeAttachment, replaceAttachment, replaceAttachment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBClientUserTransactionContext

public EJBClientUserTransactionContext()
Method Detail

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

JBoss EJB client 1.0.5.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.