org.exolab.castor.jdo.transactionmanager
Interface TransactionManagerFactory

All Known Implementing Classes:
AbstractTransactionManagerFactory, JNDIENCTransactionManagerFactory, JOTMTransactionManagerFactory, LocalTransactionManagerFactory, WebSphere51TransactionManagerFactory, WebSphere5TransactionManagerFactory, WebSphereTransactionManagerFactory

public interface TransactionManagerFactory

A factory for properly acquiring javax.transaction.TransactionManager from J2EE containers. To provide an implementation for a specific J2EE container, implement this interface.

Version:
$Revision: 1.6 $ $Date: 2005/09/20 21:30:47 $
Author:
Bruce Snyder, Werner Guttmann, Ralf Joachim

Method Summary
 java.lang.String getName()
          Returns the short alias for this factory instance.
 javax.transaction.TransactionManager getTransactionManager(JdoConf jdoConf)
          Acquires the appropriate javax.transaction.TransactionManager with the parameters from the given jdo configuration.
 

Method Detail

getName

java.lang.String getName()
Returns the short alias for this factory instance.

Returns:
The short alias name.

getTransactionManager

javax.transaction.TransactionManager getTransactionManager(JdoConf jdoConf)
                                                           throws TransactionManagerAcquireException
Acquires the appropriate javax.transaction.TransactionManager with the parameters from the given jdo configuration.

Parameters:
jdoConf - The jdo configuration holding the parameters to set on the transaction manager.
Returns:
The transaction manager.
Throws:
TransactionManagerAcquireException - If any failure occures when loading the transaction manager.


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com