JBoss API: Class UserTransactionSessionImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--org.jboss.tm.usertx.server.UserTransactionSessionImpl
The RMI remote UserTransaction session implementation. It handles transactions on behalf of a single client.
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
UserTransactionSessionImpl()
A no-args constructor that throws RemoteException . |
Method Summary | |
java.lang.Object |
begin(int timeout)
Start a new transaction, and return its TPC. |
void |
commit(java.lang.Object tpc)
Commit the transaction. |
void |
destroy()
Destroy this session. |
int |
getStatus(java.lang.Object tpc)
Return status of the transaction. |
protected static TransactionPropagationContextFactory |
getTPCFactory()
Get a reference to the TPC Factory |
protected static javax.transaction.TransactionManager |
getTransactionManager()
Get a reference to the transaction manager. |
void |
rollback(java.lang.Object tpc)
Rollback the transaction. |
void |
setRollbackOnly(java.lang.Object tpc)
Mark the transaction for rollback only. |
void |
unreferenced()
When no longer referenced, be sure to rollback any transactions that are still active. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UserTransactionSessionImpl() throws java.rmi.RemoteException
RemoteException
.Method Detail |
protected static javax.transaction.TransactionManager getTransactionManager()
protected static TransactionPropagationContextFactory getTPCFactory()
public void destroy() throws java.rmi.RemoteException
destroy
in interface UserTransactionSession
public java.lang.Object begin(int timeout) throws java.rmi.RemoteException, javax.transaction.NotSupportedException, javax.transaction.SystemException
begin
in interface UserTransactionSession
timeout
- The timeout value for the new transaction, in seconds.public void commit(java.lang.Object tpc) throws java.rmi.RemoteException, javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, java.lang.SecurityException, java.lang.IllegalStateException, javax.transaction.SystemException
commit
in interface UserTransactionSession
tpc
- The transaction propagation context for the transaction.public void rollback(java.lang.Object tpc) throws java.rmi.RemoteException, java.lang.SecurityException, java.lang.IllegalStateException, javax.transaction.SystemException
rollback
in interface UserTransactionSession
tpc
- The transaction propagation context for the transaction.public void setRollbackOnly(java.lang.Object tpc) throws java.rmi.RemoteException, java.lang.IllegalStateException, javax.transaction.SystemException
setRollbackOnly
in interface UserTransactionSession
tpc
- The transaction propagation context for the transaction.public int getStatus(java.lang.Object tpc) throws java.rmi.RemoteException, javax.transaction.SystemException
getStatus
in interface UserTransactionSession
tpc
- The transaction propagation context for the transaction.public void unreferenced()
unreferenced
in interface java.rmi.server.Unreferenced
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |