org.jencks.factory
Class TransactionContextManagerFactoryBean

java.lang.Object
  extended by org.jencks.factory.TransactionContextManagerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class TransactionContextManagerFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

This FactoryBean creates and configures the TransactionManagerContext of Geronimo.

Author:
Thierry Templier
See Also:
UnrecoverableLog, HOWLLog

Constructor Summary
TransactionContextManagerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
          This method initializes the transaction context manager basing on the Geronimo implementation of the transaction manager and a dedicated transaction log.
 int getDefaultTransactionTimeoutSeconds()
           
 Object getObject()
           
 Class getObjectType()
           
 Collection getResourceManagers()
           
 org.apache.geronimo.transaction.manager.TransactionLog getTransactionLog()
           
 org.apache.geronimo.transaction.ExtendedTransactionManager getTransactionManager()
           
 org.apache.geronimo.transaction.manager.XidImporter getXidImporter()
           
 boolean isSingleton()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setDefaultTransactionTimeoutSeconds(int defaultTransactionTimeoutSeconds)
           
 void setResourceManagers(Collection resourceManagers)
           
 void setTransactionLog(org.apache.geronimo.transaction.manager.TransactionLog transactionLog)
           
 void setTransactionManager(org.apache.geronimo.transaction.ExtendedTransactionManager transactionManager)
           
 void setXidImporter(org.apache.geronimo.transaction.manager.XidImporter xidImporter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionContextManagerFactoryBean

public TransactionContextManagerFactoryBean()
Method Detail

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

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

getTransactionManager

public org.apache.geronimo.transaction.ExtendedTransactionManager getTransactionManager()
                                                                                 throws XAException
Throws:
XAException

setTransactionManager

public void setTransactionManager(org.apache.geronimo.transaction.ExtendedTransactionManager transactionManager)

getXidImporter

public org.apache.geronimo.transaction.manager.XidImporter getXidImporter()
                                                                   throws XAException
Throws:
XAException

setXidImporter

public void setXidImporter(org.apache.geronimo.transaction.manager.XidImporter xidImporter)

getDefaultTransactionTimeoutSeconds

public int getDefaultTransactionTimeoutSeconds()

setDefaultTransactionTimeoutSeconds

public void setDefaultTransactionTimeoutSeconds(int defaultTransactionTimeoutSeconds)

getTransactionLog

public org.apache.geronimo.transaction.manager.TransactionLog getTransactionLog()

setTransactionLog

public void setTransactionLog(org.apache.geronimo.transaction.manager.TransactionLog transactionLog)

getResourceManagers

public Collection getResourceManagers()

setResourceManagers

public void setResourceManagers(Collection resourceManagers)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
This method initializes the transaction context manager basing on the Geronimo implementation of the transaction manager and a dedicated transaction log.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.