org.mule.providers.gs
Class JiniTransactionFactory
java.lang.Object
org.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transactionManager
protected TransactionManager transactionManager
transactionTimeout
protected long transactionTimeout
JiniTransactionFactory
public JiniTransactionFactory()
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.