public class UserTransactionServerImp extends java.lang.Object implements UserTransactionServer
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
begin(int timeout)
Create a new transaction.
|
void |
commit(java.lang.String tid)
Commit the transaction.
|
java.lang.String |
getName()
Get the name on which this instance is listening in RMI.
|
static UserTransactionServerImp |
getSingleton() |
int |
getStatus(java.lang.String tid)
Get the status of the transaction.
|
javax.transaction.UserTransaction |
getUserTransaction()
Get a usertx for this server.
|
void |
init(java.lang.String tmUniqueName,
java.util.Properties properties)
Initializes the server object.
|
void |
rollback(java.lang.String tid)
Rollback the transaction.
|
void |
setRollbackOnly(java.lang.String tid)
Mark the transaction for rollback only.
|
void |
shutdown()
Performs shutdown of the server.
|
public static UserTransactionServerImp getSingleton()
public javax.transaction.UserTransaction getUserTransaction()
public java.lang.String getName()
public void init(java.lang.String tmUniqueName,
java.util.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 java.lang.String begin(int timeout)
throws java.rmi.RemoteException,
javax.transaction.SystemException,
javax.transaction.NotSupportedException
UserTransactionServerbegin in interface UserTransactionServertimeout - The timeout setting of the client UserTx.java.rmi.RemoteExceptionjavax.transaction.SystemExceptionjavax.transaction.NotSupportedExceptionUserTransactionServerpublic void commit(java.lang.String tid)
throws java.rmi.RemoteException,
javax.transaction.RollbackException,
javax.transaction.HeuristicMixedException,
javax.transaction.HeuristicRollbackException,
java.lang.SecurityException,
java.lang.IllegalStateException,
javax.transaction.SystemException
UserTransactionServercommit in interface UserTransactionServertid - The tid of the tx to commit.java.rmi.RemoteExceptionjavax.transaction.RollbackExceptionjavax.transaction.HeuristicMixedExceptionjavax.transaction.HeuristicRollbackExceptionjava.lang.SecurityExceptionjava.lang.IllegalStateExceptionjavax.transaction.SystemExceptionUserTransactionServerpublic void rollback(java.lang.String tid)
throws java.rmi.RemoteException,
java.lang.IllegalStateException,
java.lang.SecurityException,
javax.transaction.SystemException
UserTransactionServerrollback in interface UserTransactionServertid - The tid of the transaction to rollback.java.rmi.RemoteExceptionjava.lang.IllegalStateExceptionjava.lang.SecurityExceptionjavax.transaction.SystemExceptionUserTransactionServerpublic void setRollbackOnly(java.lang.String tid)
throws java.rmi.RemoteException,
java.lang.IllegalStateException,
javax.transaction.SystemException
UserTransactionServersetRollbackOnly in interface UserTransactionServertid - The tid of the transaction to mark.java.rmi.RemoteExceptionjava.lang.IllegalStateExceptionjavax.transaction.SystemExceptionUserTransactionServerpublic int getStatus(java.lang.String tid)
throws java.rmi.RemoteException,
javax.transaction.SystemException
UserTransactionServergetStatus in interface UserTransactionServertid - The tid.java.rmi.RemoteExceptionjavax.transaction.SystemExceptionUserTransactionServerCopyright © 2018. All Rights Reserved.