org.objectweb.jotm

Class Jotm

Implemented Interfaces:
TMService

public class Jotm
extends Object
implements TMService

This class represents an instance of JOTM.

Author:
jeff mesnil

Constructor Summary

Jotm(boolean local, boolean bound)
Public constructor for Jotm.

Method Summary

TransactionManager
getTransactionManager()
TransactionRecovery
getTransactionRecovery()
UserTransaction
getUserTransaction()
void
stop()

Constructor Details

Jotm

public Jotm(boolean local,
            boolean bound)
            throws NamingException
Public constructor for Jotm. If Jotm is created with a local transaction factory which is not bound to a registry, Jotm would be able to manage transactions only inside the same JVM.

Parameters:
local - true to create an instance of JOTM with a local transaction factory, false else
bound - true if the transaction factory is to be bound in a registry, false else (ignored if local is false)

Method Details

getTransactionManager

public TransactionManager getTransactionManager()
Specified by:
getTransactionManager in interface TMService

See Also:
TMService.getTransactionManager()


getTransactionRecovery

public TransactionRecovery getTransactionRecovery()
Specified by:
getTransactionRecovery in interface TMService

See Also:
TMService.getTransactionManager()


getUserTransaction

public UserTransaction getUserTransaction()
Specified by:
getUserTransaction in interface TMService

See Also:
TMService.getUserTransaction()


stop

public void stop()
Specified by:
stop in interface TMService

See Also:
TMService.stop()