org.mule.providers.gs
Class JiniTransactionFactory

java.lang.Object
  extended byorg.mule.providers.gs.JiniTransactionFactory
All Implemented Interfaces:
UMOTransactionFactory

public class JiniTransactionFactory
extends Object
implements UMOTransactionFactory

Creates a Jini Transaction. This factory needs to have the TransactionManager set on it before the beginTransaction method is called on it. This should be set during start up of the Mule server by the resource that will be sending or receiving events from a JavaSpace.

See Also:
TransactionManager

Field Summary
protected  TransactionManager transactionManager
           
protected  long transactionTimeout
           
 
Constructor Summary
JiniTransactionFactory()
           
 
Method Summary
 UMOTransaction beginTransaction()
          Create and begins a new transaction
 TransactionManager getTransactionManager()
           
 long getTransactionTimeout()
           
 boolean isTransacted()
          Determines whether this transaction factory creates transactions that are really transacted or if they are being used to simulate batch actions, such as using Jms Client Acknowledge.
 void setTransactionManager(TransactionManager transactionManager)
           
 void setTransactionTimeout(long transactionTimeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transactionManager

protected TransactionManager transactionManager

transactionTimeout

protected long transactionTimeout
Constructor Detail

JiniTransactionFactory

public JiniTransactionFactory()
Method Detail

beginTransaction

public UMOTransaction beginTransaction()
                                throws TransactionException
Create and begins a new transaction

Specified by:
beginTransaction in interface UMOTransactionFactory
Returns:
a new Transaction
Throws:
TransactionException - if the transaction cannot be created or begun

isTransacted

public boolean isTransacted()
Determines whether this transaction factory creates transactions that are really transacted or if they are being used to simulate batch actions, such as using Jms Client Acknowledge.

Specified by:
isTransacted in interface UMOTransactionFactory
Returns:

getTransactionManager

public TransactionManager getTransactionManager()

setTransactionManager

public void setTransactionManager(TransactionManager transactionManager)

getTransactionTimeout

public long getTransactionTimeout()

setTransactionTimeout

public void setTransactionTimeout(long transactionTimeout)


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.