public class UserTransactionServerImp extends Object implements UserTransactionServer
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.SysExceptionpublic void shutdown()
throws SysException
SysExceptionpublic String begin(int timeout) throws RemoteException, SystemException, NotSupportedException
UserTransactionServerbegin in interface UserTransactionServertimeout - The timeout setting of the client UserTx.RemoteExceptionSystemExceptionNotSupportedExceptionUserTransactionServerpublic void commit(String tid) throws RemoteException, RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
UserTransactionServercommit in interface UserTransactionServertid - The tid of the tx to commit.RemoteExceptionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionUserTransactionServerpublic void rollback(String tid) throws RemoteException, IllegalStateException, SecurityException, SystemException
UserTransactionServerrollback in interface UserTransactionServertid - The tid of the transaction to rollback.RemoteExceptionIllegalStateExceptionSecurityExceptionSystemExceptionUserTransactionServerpublic void setRollbackOnly(String tid) throws RemoteException, IllegalStateException, SystemException
UserTransactionServersetRollbackOnly in interface UserTransactionServertid - The tid of the transaction to mark.RemoteExceptionIllegalStateExceptionSystemExceptionUserTransactionServerpublic int getStatus(String tid) throws RemoteException, SystemException
UserTransactionServergetStatus in interface UserTransactionServertid - The tid.RemoteExceptionSystemExceptionUserTransactionServerCopyright © 2016. All Rights Reserved.