org.jencks.factory
Class XATransactionFactoryBean
java.lang.Object
org.jencks.factory.XATransactionFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
- public class XATransactionFactoryBean
- extends Object
- implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
This FactoryBean creates the xa transaction strategy for the
JCA connection manager used.
This class can be injected in the ConnectionManagerFactoryBean to
configure the ConnectionManager instance returned.
- Author:
- Thierry Templier
- See Also:
ConnectionManagerFactoryBean.setTransactionSupport(TransactionSupport)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XATransactionFactoryBean
public XATransactionFactoryBean()
getObject
public Object getObject()
throws Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
Exception
getObjectType
public Class getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean
setUseThreadCaching
public void setUseThreadCaching(boolean useThreadCaching)
- Set the useThreadCaching property to allow the ConnectionManager to
cache connections for a thread.
setUseTransactionCaching
public void setUseTransactionCaching(boolean useTransactionCaching)
- Set the useTransactionCaching property to allow the ConnectionManager to
cache connections for the current transaction.
This allows connections to be used several times in the same transaction.
So it prevents the connection to be enlisted several times in the
current transaction.
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
- See Also:
InitializingBean.afterPropertiesSet()
Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.