oracle.toplink.jts
Class JTSSynchronizationListener

oracle.toplink.jts.JTSSynchronizationListener
Direct Known Subclasses:
OS390SynchronizationListener, WebLogicSynchronizationListener

public class JTSSynchronizationListener

Purpose: Concrete implementation of AbstractSynchronizationListener based on JTS 1.0. As such, it uses the 'proper' interfaces javax.transaction.Transaction and javax.transaction.Status. It is important to note that this class must be statically configured with an instance of a class that implements the JTS TransactionManager interface so that the current transaction can be found.


Constructor Summary
JTSSynchronizationListener(UnitOfWork unitOfWork, Session session, java.lang.Object transaction)
           
 
Method Summary
TypeMethod
static void setTransactionManager(oracle.toplink.jts.TransactionManager theTransactionManager)
          REQUIRED: If using a JTS 1.0 compliant driver this must be called to give TopLink access to the transaction manager.
 

Constructor Detail

JTSSynchronizationListener

public JTSSynchronizationListener(UnitOfWork unitOfWork,
                                  Session session,
                                  java.lang.Object transaction)
Method Detail

setTransactionManager

public static void setTransactionManager(oracle.toplink.jts.TransactionManager theTransactionManager)
REQUIRED: If using a JTS 1.0 compliant driver this must be called to give TopLink access to the transaction manager. This is required because there is no standard way to lookup the transaction manager in JTS 1.0.