public class GenericTransactionManagerLookupFactory extends Object implements TransactionManagerFactory, Initialisable
Modifier and Type | Field and Description |
---|---|
protected Context |
context |
protected Log |
logger |
PHASE_NAME
Constructor and Description |
---|
GenericTransactionManagerLookupFactory() |
Modifier and Type | Method and Description |
---|---|
TransactionManager |
create(MuleConfiguration config)
Creates of obtains the jta transaction manager to use for mule transactions
|
Context |
getContext() |
Map |
getEnvironment() |
String |
getJndiName() |
TransactionManager |
getTxManager() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setContext(Context context) |
void |
setEnvironment(Map environment) |
void |
setJndiName(String jndiName) |
void |
setTxManager(TransactionManager txManager) |
public GenericTransactionManagerLookupFactory()
public String getJndiName()
public void setJndiName(String jndiName)
public TransactionManager getTxManager()
public void setTxManager(TransactionManager txManager)
public Map getEnvironment()
public void setEnvironment(Map environment)
public Context getContext()
public void setContext(Context context)
public TransactionManager create(MuleConfiguration config) throws Exception
TransactionManagerFactory
create
in interface TransactionManagerFactory
config
- Exception
- if the transaction manager cannot be located or createdTransactionManagerFactory.create(MuleConfiguration)
public void initialise() throws InitialisationException
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs
causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered fromCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.