jrun.transaction
Class JRunUserTransaction
jrun.transaction.JRunUserTransaction
- All Implemented Interfaces:
- JRunUserTransactionItfc, JRunUserTransactionMBean, java.io.Serializable, Service, ServiceMBean
- public class JRunUserTransaction
- implements JRunUserTransactionMBean
Service that provides UserTransaction functionality. Being a service,
when it is accessed remotely only its referenceable stub is passed
(RMIBroker), so both remote and local accesses interact with a TM
that is local to the service instance.
- Author:
- PS Neville
- See Also:
- Serialized Form
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
OBJECT_NAME
public static final java.lang.String OBJECT_NAME
JRunUserTransaction
public JRunUserTransaction(TransactionManagerImpl tyrexTM)
begin
public void begin()
throws javax.transaction.NotSupportedException,
javax.transaction.SystemException
- Specified by:
begin in interface JRunUserTransactionMBean
commit
public void commit()
throws javax.transaction.RollbackException,
javax.transaction.HeuristicMixedException,
javax.transaction.HeuristicRollbackException,
java.lang.SecurityException,
java.lang.IllegalStateException,
javax.transaction.SystemException
- Specified by:
commit in interface JRunUserTransactionMBean
rollback
public void rollback()
throws java.lang.IllegalStateException,
java.lang.SecurityException,
javax.transaction.SystemException
- Specified by:
rollback in interface JRunUserTransactionMBean
getStatus
public int getStatus()
- Specified by:
getStatus in interface Service
getServiceStatus
public int getServiceStatus()
- Specified by:
getServiceStatus in interface JRunUserTransactionMBean
setRollbackOnly
public void setRollbackOnly()
throws java.lang.IllegalStateException,
javax.transaction.SystemException
- Specified by:
setRollbackOnly in interface JRunUserTransactionMBean
setTransactionTimeout
public void setTransactionTimeout(int timeout)
throws javax.transaction.SystemException
- Specified by:
setTransactionTimeout in interface JRunUserTransactionMBean
getXid
public javax.transaction.xa.Xid getXid()
throws javax.transaction.SystemException
- Specified by:
getXid in interface JRunUserTransactionMBean
begin
public javax.transaction.xa.Xid begin(java.lang.Integer clienthashCode)
throws javax.transaction.SystemException,
javax.transaction.NotSupportedException
- Specified by:
begin in interface JRunUserTransactionItfc
commit
public void commit(javax.transaction.xa.Xid xid)
throws javax.transaction.RollbackException,
javax.transaction.HeuristicMixedException,
javax.transaction.HeuristicRollbackException,
javax.transaction.SystemException,
java.lang.IllegalStateException
- Specified by:
commit in interface JRunUserTransactionItfc
rollback
public void rollback(javax.transaction.xa.Xid xid)
throws javax.transaction.SystemException,
java.lang.IllegalStateException
- Specified by:
rollback in interface JRunUserTransactionItfc
setRollbackOnly
public void setRollbackOnly(javax.transaction.xa.Xid xid)
throws javax.transaction.SystemException,
java.lang.IllegalStateException
- Specified by:
setRollbackOnly in interface JRunUserTransactionItfc
getStatus
public int getStatus(javax.transaction.xa.Xid xid)
- Specified by:
getStatus in interface JRunUserTransactionItfc
setTransactionTimeout
public void setTransactionTimeout(javax.transaction.xa.Xid xid,
int seconds)
throws javax.transaction.SystemException
- Specified by:
setTransactionTimeout in interface JRunUserTransactionItfc
Copyright � 2002 Macromedia Corporation. All Rights Reserved.