com.atomikos.icatch.jta
Class AbstractJtaUserTransactionService

java.lang.Object
  extended by com.atomikos.icatch.config.imp.AbstractUserTransactionService
      extended by com.atomikos.icatch.jta.AbstractJtaUserTransactionService
All Implemented Interfaces:
UserTransactionService

public abstract class AbstractJtaUserTransactionService
extends AbstractUserTransactionService


Constructor Summary
AbstractJtaUserTransactionService()
           
 
Method Summary
 TransactionManager getTransactionManager()
          Get the JTA transaction manager handle for the config.
 void init(TSInitInfo info)
          Initializes the intra-VM transaction manager.
 void shutdown(boolean force)
          Shuts down the TM.
 
Methods inherited from class com.atomikos.icatch.config.imp.AbstractUserTransactionService
findOrCreateFolder, getCompositeTransactionManager, getDefaultName, getExportingTransactionManager, getHostAddress, getImportingTransactionManager, getLogAdministrators, getResources, getTrimmedProperty, init, registerLogAdministrator, registerResource, registerTSListener, removeLogAdministrator, removeResource, removeTSListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atomikos.icatch.config.UserTransactionService
createTSInitInfo, getTSMetaData, getUserTransaction
 

Constructor Detail

AbstractJtaUserTransactionService

public AbstractJtaUserTransactionService()
Method Detail

init

public void init(TSInitInfo info)
          throws SysException
Description copied from interface: UserTransactionService
Initializes the intra-VM transaction manager.

Specified by:
init in interface UserTransactionService
Overrides:
init in class AbstractUserTransactionService
Parameters:
info - The TSInitInfo with details for initialization.
Throws:
SysException
See Also:
UserTransactionService

shutdown

public void shutdown(boolean force)
              throws IllegalStateException
Description copied from interface: UserTransactionService
Shuts down the TM. It is highly recommended that this method be called before the VM exits, in order to ensure proper log closing. After this method completes, all resources will have been removed from the configuration, as well as all logadministrators. To re-initialize, everything should be registered again.

Specified by:
shutdown in interface UserTransactionService
Overrides:
shutdown in class AbstractUserTransactionService
Parameters:
force - If true, then shutdown will succeed even if some transactions are still active. If false, then the calling thread will block until any active transactions are terminated. A heuristic transaction is also considered to be active.
Throws:
IllegalStateException
See Also:
UserTransactionService

getTransactionManager

public TransactionManager getTransactionManager()
Description copied from interface: UserTransactionService
Get the JTA transaction manager handle for the config.

Returns:
TransactionManager The JTA transaction manager.
See Also:
UserTransactionService


Copyright © 2011. All Rights Reserved.