public class Jotm
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log
Logger
|
Constructor and Description |
---|
Jotm(boolean local,
boolean bound)
Public constructor for Jotm.
|
Modifier and Type | Method and Description |
---|---|
javax.transaction.TransactionManager |
getTransactionManager() |
TransactionSynchronizationRegistryImpl |
getTransactionSynchronizationRegistry() |
javax.transaction.UserTransaction |
getUserTransaction() |
void |
stop() |
public Jotm(boolean local, boolean bound) throws javax.naming.NamingException
local
transaction factory which is
not bound
to a registry, Jotm would be able to manage
transactions only inside the same JVM.local
- true
to create an instance of JOTM with a
local transaction factory, false
elsebound
- true
if the transaction factory is to be
bound in a registry, false
else (ignored if
local is false
)
javax.naming.NamingException
- thrown if the transaction factory can't be bound
or looked up in a registrypublic javax.transaction.TransactionManager getTransactionManager()
public javax.transaction.UserTransaction getUserTransaction()
public TransactionSynchronizationRegistryImpl getTransactionSynchronizationRegistry()
public void stop()