JBoss EJB client 1.0.5.Final

org.jboss.ejb.client
Class EJBClientManagedTransactionContext

java.lang.Object
  extended by org.jboss.ejb.client.Attachable
      extended by org.jboss.ejb.client.EJBClientTransactionContext
          extended by org.jboss.ejb.client.EJBClientManagedTransactionContext

public final class EJBClientManagedTransactionContext
extends EJBClientTransactionContext

A transaction context for environments with a TransactionManager.

Author:
David M. Lloyd

Method Summary
protected  TransactionID 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.
 
Methods inherited from class org.jboss.ejb.client.EJBClientTransactionContext
create, createLocal, getCurrent, getUserTransaction, 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
 

Method Detail

getAssociatedTransactionID

protected TransactionID getAssociatedTransactionID(EJBClientInvocationContext invocationContext)
                                            throws Exception
Description copied from class: EJBClientTransactionContext
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
Throws:
Exception - if an exception occurs

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

JBoss EJB client 1.0.5.Final

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