org.mule.providers.gs
Class JiniTransaction
java.lang.Object
org.mule.transaction.AbstractTransaction
org.mule.transaction.AbstractSingleResourceTransaction
org.mule.providers.gs.JiniTransaction
- All Implemented Interfaces:
- UMOTransaction
- public class JiniTransaction
- extends AbstractSingleResourceTransaction
Provides a Jini Transaction wrapper so that Jini transactions can be used in Mule.
As Jini does not use the standard JTA Transaction manager, the Jini
TransactionManager Must be set on the JiniTransactionFactory before any
transactions are begun.
- See Also:
TransactionManager,
JiniTransactionFactory
|
Method Summary |
void |
bindResource(Object key,
Object resource)
|
void |
doBegin()
Begin the transaction. |
protected void |
doCommit()
Commit the transaction on the underlying resource |
protected void |
doRollback()
Rollback the transaction on the underlying resource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
txManager
protected TransactionManager txManager
timeout
protected long timeout
unbound
protected boolean unbound
JiniTransaction
public JiniTransaction(long timeout)
bindResource
public void bindResource(Object key,
Object resource)
throws TransactionException
- Specified by:
bindResource in interface UMOTransaction- Overrides:
bindResource in class AbstractSingleResourceTransaction
- Throws:
TransactionException
doBegin
public void doBegin()
throws TransactionException
- Begin the transaction.
- Specified by:
doBegin in class AbstractSingleResourceTransaction
- Throws:
TransactionException
doCommit
protected void doCommit()
throws TransactionException
- Description copied from class:
AbstractSingleResourceTransaction
- Commit the transaction on the underlying resource
- Specified by:
doCommit in class AbstractSingleResourceTransaction
- Throws:
TransactionException
doRollback
protected void doRollback()
throws TransactionException
- Description copied from class:
AbstractSingleResourceTransaction
- Rollback the transaction on the underlying resource
- Specified by:
doRollback in class AbstractSingleResourceTransaction
- Throws:
TransactionException
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.