|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jotm.Jotm
This class represents an instance of JOTM.
Constructor Summary | |
Jotm(boolean local,
boolean bound)
Public constructor for Jotm. |
Method Summary | |
TransactionManager |
getTransactionManager()
returns a TransactionManager object. |
UserTransaction |
getUserTransaction()
Returns an UserTransaction object. |
void |
stop()
Stops the transaction service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Jotm(boolean local, boolean bound) throws 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
)
- Throws:
NamingException
- thrown if the transaction factory can't be bound
or looked up in a registry
Method Detail |
public TransactionManager getTransactionManager()
TMService
TransactionManager
object.
getTransactionManager
in interface TMService
TMService.getTransactionManager()
public UserTransaction getUserTransaction()
TMService
UserTransaction
object.
getUserTransaction
in interface TMService
TMService.getUserTransaction()
public void stop()
TMService
stop
in interface TMService
TMService.stop()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |