S2のJTAとコネクションプールではなく、WebLogic、WebSphere、OracleAS、JBossのJTAとコネクションプールを使いS2Txと連動させることもできます。コンポーネントの定義(jta.dicon)はは次のとおりです。
<component name="TransactionManager"
class="javax.transaction.TransactionManager">
@org.seasar.extension.j2ee.JndiResourceLocator@lookup("javax.transaction.TransactionManager")
</component>
<component name="TransactionManager"
class="javax.transaction.TransactionManager">
@com.ibm.ejs.jts.jta.JTSXA@getTransactionManager()
</component>
<component name="TransactionManager"
class="javax.transaction.TransactionManager">
@com.ibm.ejs.jts.jta.TransactionManagerFactory@getTransactionManager()
</component>
<component name="TransactionManager"
class="javax.transaction.TransactionManager">
@com.ibm.ws.Transction.TransactionManagerFactory@getTransactionManager()
</component>
<component name="TransactionManager"
class="javax.transaction.TransactionManager">
@org.seasar.extension.j2ee.JndiResourceLocator@lookup("java:comp/UserTransaction")
</component>
<component name="TransactionManager"
class="javax.transaction.TransactionManager">
@org.seasar.extension.j2ee.JndiResourceLocator@lookup("java:/TransactionManager")
</component>
|