org.ow2.jonas.tm.jotm.delegate
Class TransactionCCFDelegate

java.lang.Object
  extended by org.ow2.jonas.tm.jotm.delegate.TransactionCCFDelegate
All Implemented Interfaces:
JComponentContextFactoryDelegate
Direct Known Subclasses:
ServerTransactionCCFDelegate, UserTransactionCCFDelegate

public abstract class TransactionCCFDelegate
extends java.lang.Object
implements JComponentContextFactoryDelegate

Store the UserTransaction object under the java:comp/UserTransaction name.

Author:
Francois Fornaciari

Field Summary
protected  javax.transaction.TransactionSynchronizationRegistry tsr
          TransactionSynchronizationRegistry object, to be shared by all components.
protected  javax.transaction.UserTransaction userTransaction
          UserTransaction object, to be shared by all components.
 
Constructor Summary
TransactionCCFDelegate()
           
 
Method Summary
protected  void init()
          Initialize the Context.
 void modify(javax.naming.Context componentContext)
          
 void undo(javax.naming.Context componentContext)
          Undo the changes done by this delegate on the given java:comp context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userTransaction

protected javax.transaction.UserTransaction userTransaction
UserTransaction object, to be shared by all components.


tsr

protected javax.transaction.TransactionSynchronizationRegistry tsr
TransactionSynchronizationRegistry object, to be shared by all components.

Constructor Detail

TransactionCCFDelegate

public TransactionCCFDelegate()
Method Detail

init

protected void init()
             throws javax.naming.NamingException
Initialize the Context.

Throws:
javax.naming.NamingException - if unable to create the InitialContext.

modify

public void modify(javax.naming.Context componentContext)
            throws javax.naming.NamingException

Specified by:
modify in interface JComponentContextFactoryDelegate
Throws:
javax.naming.NamingException

undo

public void undo(javax.naming.Context componentContext)
          throws javax.naming.NamingException
Undo the changes done by this delegate on the given java:comp context.

Specified by:
undo in interface JComponentContextFactoryDelegate
Parameters:
componentContext - java:comp/ component context to be modified.
Throws:
javax.naming.NamingException - thrown if something goes wrong during the Context update.


Copyright © 2010 OW2 Consortium. All Rights Reserved.