|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bea.jolt.Transaction bea.jolt.JoltTransaction
The JoltTransaction class is the explicit transaction model for Jolt. The JoltTransaction class implements the transaction object. This object can be used by JoltRemoteService to include several services into a single transaction. When a transaction times out, your application must roll back the transaction immediately. In the current implementation of Tuxedo, only one transaction object can be instantiated at one time.
JoltRemoteService
,
JoltSession
Constructor Summary | |
JoltTransaction(int timeout,
Session session)
The constructor (or the method that is invoked automatically when a new instance of a class is created) implies the beginning of the transaction. |
|
JoltTransaction(int timeout,
Session session,
java.lang.String principal,
java.lang.String realm)
|
Method Summary | |
void |
commit()
Commit the transaction. |
Session |
getSession()
Get the session associated with this transaction. |
void |
rollback()
Roll back or abort the transaction. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JoltTransaction(int timeout, Session session) throws TransactionException
timeout
- A suggested transaction timeout value in secondssession
- The session which the transaction belongs to
TransactionException
- Another transaction is already in
progress, or invalid session objectJoltSession
,
JoltRemoteService.call(bea.jolt.Transaction)
public JoltTransaction(int timeout, Session session, java.lang.String principal, java.lang.String realm) throws TransactionException
Method Detail |
public Session getSession()
JoltSession
public void commit() throws TransactionException
TransactionException
- A transaction error has occurred.public void rollback() throws TransactionException
TransactionException
- A transaction error has occurred.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |