|
||||||||||
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. |
TransactionManager |
getTransactionManager()
Gets the TransactionManager. |
TransactionSynchronizationRegistry |
getTransactionSynchronizationRegistry()
|
UserTransaction |
getUserTransaction()
|
XATerminator |
getXATerminator()
Gets the inflow transaction object that represents the transaction context of the calling thread. |
void |
setTimeout(int t)
Sets the default transaction timeout. |
void |
startResourceManagerRecovery()
Start ResourceManager Recovery |
Methods inherited from interface org.ow2.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Method Detail |
---|
TransactionManager getTransactionManager()
UserTransaction getUserTransaction()
UserTransaction
object.TransactionSynchronizationRegistry getTransactionSynchronizationRegistry()
XATerminator getXATerminator() throws XAException
XAException
void startResourceManagerRecovery() throws XAException
XAException
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 |