|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionService
Transaction Service interface.
Method Summary | |
---|---|
void |
attachTransaction(Xid xid,
long timeout)
Attach the current calling Thread to the given Xid . |
void |
detachTransaction()
Detach the current Thread of the running Transaction. |
org.objectweb.jotm.Current |
getCurrent()
Gets the Current object. |
org.objectweb.jotm.TransactionFactory |
getTransactionFactory()
|
org.objectweb.transaction.jta.TransactionManager |
getTransactionManager()
Gets the TransactionManager. |
UserTransaction |
getUserTransaction()
|
void |
setTimeout(int t)
Sets the default transaction timeout. |
Methods inherited from interface org.objectweb.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Method Detail |
---|
org.objectweb.jotm.Current getCurrent()
org.objectweb.transaction.jta.TransactionManager getTransactionManager()
UserTransaction getUserTransaction()
UserTransaction
object.org.objectweb.jotm.TransactionFactory getTransactionFactory()
TransactionFactory
object (JTM factory).void setTimeout(int t)
t
- default transaction timeout.void attachTransaction(Xid xid, long timeout) throws NotSupportedException, SystemException
Thread
to the given Xid
.
xid
- Transaction id.timeout
- Transaction timeout.
SystemException
- if the TM cannot attach the given Xid
.
NotSupportedException
- if the TM cannot attach the given Xid
.void detachTransaction()
Thread
of the running Transaction.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |