public final class RemoteClientUserTransaction extends Object implements UserTransaction, Externalizable, Referenceable
| Constructor and Description |
|---|
RemoteClientUserTransaction()
No-argument constructor, as required by Externalizable interface.
|
RemoteClientUserTransaction(String userTransactionServerLookupName,
ConfigProperties configProperties)
Preferred constructor.
|
RemoteClientUserTransaction(String name,
String initialContextFactory,
String providerUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
Reference |
getReference() |
int |
getStatus() |
void |
readExternal(ObjectInput in) |
void |
rollback() |
void |
setRollbackOnly() |
void |
setTransactionTimeout(int seconds) |
String |
toString()
Overrides the default behaviour, to allow retrieving the corresponding
transaction at the server side.
|
void |
writeExternal(ObjectOutput out)
Needed to ship instances across the network among clients.
|
public RemoteClientUserTransaction()
public RemoteClientUserTransaction(String userTransactionServerLookupName, ConfigProperties configProperties)
userTransactionServerLookupName - configProperties - public RemoteClientUserTransaction(String name, String initialContextFactory, String providerUrl)
name - The unique name of the UserTransactionServer.initialContextFactory - The initial context factory of the server JNDI
context.providerUrl - The provider URL of the server JNDI context.public void begin()
throws NotSupportedException,
SystemException
begin in interface UserTransactionNotSupportedExceptionSystemExceptionUserTransactionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SystemException,
IllegalStateException,
SecurityException
commit in interface UserTransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSystemExceptionIllegalStateExceptionSecurityExceptionUserTransactionpublic void rollback()
throws IllegalStateException,
SystemException,
SecurityException
rollback in interface UserTransactionIllegalStateExceptionSystemExceptionSecurityExceptionUserTransactionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface UserTransactionIllegalStateExceptionSystemExceptionUserTransactionpublic int getStatus()
throws SystemException
getStatus in interface UserTransactionSystemExceptionUserTransactionpublic void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface UserTransactionSystemExceptionUserTransactionpublic String toString()
public Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionReferenceablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionExternalizablepublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionExternalizableCopyright © 2016. All Rights Reserved.