| FactoryBean that retrieves the JTA TransactionManager for IBM's
WebSphere application servers (versions 6, 5.1, 5.0 and 4).
Uses WebSphere's static access methods to obtain the JTA TransactionManager,
which is different for WebSphere 5.1+, 5.0 and 4.
In combination with Spring's JtaTransactionManager, this FactoryBean
can be used to enable transaction suspension (PROPAGATION_REQUIRES_NEW,
PROPAGATION_NOT_SUPPORTED) on WebSphere:
<bean id="wsJtaTm" class="org.springframework.transaction.jta.WebSphereTransactionManagerFactoryBean"/>
<bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
<property name="transactionManager ref="wsJtaTm"/>
</bean>
Note that Spring's JtaTransactionManager will continue to use the JTA
UserTransaction for standard transaction demarcation, as defined by
standard J2EE. It will only use the provided WebSphere TransactionManager
in case of actual transaction suspension needs.
author: Juergen Hoeller since: 21.01.2004 See Also: JtaTransactionManager.setTransactionManager See Also: com.ibm.ws.Transaction.TransactionManagerFactory.getTransactionManager See Also: com.ibm.ejs.jts.jta.JTSXA.getTransactionManager See Also: com.ibm.ejs.jts.jta.TransactionManagerFactory.getTransactionManager |