org.mule.providers.gs
Class JiniTransaction

java.lang.Object
  extended byorg.mule.transaction.AbstractTransaction
      extended byorg.mule.transaction.AbstractSingleResourceTransaction
          extended byorg.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

Field Summary
protected  long timeout
           
protected  TransactionManager txManager
           
protected  boolean unbound
           
 
Fields inherited from class org.mule.transaction.AbstractSingleResourceTransaction
committed, key, resource, rollbackOnly, rolledBack, started
 
Fields inherited from class org.mule.transaction.AbstractTransaction
logger
 
Fields inherited from interface org.mule.umo.UMOTransaction
STATUS_ACTIVE, STATUS_COMMITTED, STATUS_COMMITTING, STATUS_MARKED_ROLLBACK, STATUS_NO_TRANSACTION, STATUS_PREPARED, STATUS_PREPARING, STATUS_ROLLEDBACK, STATUS_ROLLING_BACK, STATUS_UNKNOWN
 
Constructor Summary
JiniTransaction(long timeout)
           
 
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 org.mule.transaction.AbstractSingleResourceTransaction
begin, commit, getId, getResource, getStatus, hasResource, rollback, setRollbackOnly
 
Methods inherited from class org.mule.transaction.AbstractTransaction
isBegun, isCommitted, isRollbackOnly, isRolledBack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

txManager

protected TransactionManager txManager

timeout

protected long timeout

unbound

protected boolean unbound
Constructor Detail

JiniTransaction

public JiniTransaction(long timeout)
Method Detail

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.