|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.icatch.jta.UserTransactionServerImp
public class UserTransactionServerImp
An implementation of the server-side UserTransaction infrastructure. An instance of this class is created and exported automatically (when client-demarcated transactions are enabled).
| Method Summary | |
|---|---|
String |
begin(int timeout)
Create a new transaction. |
void |
commit(String tid)
Commit the transaction. |
String |
getName()
Get the name on which this instance is listening in RMI. |
static UserTransactionServerImp |
getSingleton()
|
int |
getStatus(String tid)
Get the status of the transaction. |
UserTransaction |
getUserTransaction()
Get a usertx for this server. |
void |
init(String tmUniqueName,
Properties properties)
Initializes the server object. |
void |
rollback(String tid)
Rollback the transaction. |
void |
setRollbackOnly(String tid)
Mark the transaction for rollback only. |
void |
shutdown()
Performs shutdown of the server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static UserTransactionServerImp getSingleton()
public UserTransaction getUserTransaction()
public String getName()
public void init(String tmUniqueName,
Properties properties)
throws SysException
properties - The JNDI environment to use.tmUniqueName - The unique name that the TM is listening on.
SysException
public void shutdown()
throws SysException
SysException
public String begin(int timeout)
throws RemoteException,
SystemException,
NotSupportedException
UserTransactionServer
begin in interface UserTransactionServertimeout - The timeout setting of the client UserTx.
RemoteException
SystemException
NotSupportedExceptionUserTransactionServer
public void commit(String tid)
throws RemoteException,
RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
UserTransactionServer
commit in interface UserTransactionServertid - The tid of the tx to commit.
RemoteException
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemExceptionUserTransactionServer
public void rollback(String tid)
throws RemoteException,
IllegalStateException,
SecurityException,
SystemException
UserTransactionServer
rollback in interface UserTransactionServertid - The tid of the transaction to rollback.
RemoteException
IllegalStateException
SecurityException
SystemExceptionUserTransactionServer
public void setRollbackOnly(String tid)
throws RemoteException,
IllegalStateException,
SystemException
UserTransactionServer
setRollbackOnly in interface UserTransactionServertid - The tid of the transaction to mark.
RemoteException
IllegalStateException
SystemExceptionUserTransactionServer
public int getStatus(String tid)
throws RemoteException,
SystemException
UserTransactionServer
getStatus in interface UserTransactionServertid - The tid.
RemoteException
SystemExceptionUserTransactionServer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||