Seasar DI Container with AOP

S2のJTAとコネクションプールではなく、WebLogic、WebSphere、OracleAS、JBossのJTAとコネクションプールを使いS2Txと連動させることもできます。コンポーネントの定義(jta.dicon)はは次のとおりです。

WebLogic

<component name="TransactionManager"
    class="javax.transaction.TransactionManager">
  @org.seasar.extension.j2ee.JndiResourceLocator@lookup("javax.transaction.TransactionManager")
</component>

WebSphere 4

<component name="TransactionManager"
    class="javax.transaction.TransactionManager">
  @com.ibm.ejs.jts.jta.JTSXA@getTransactionManager()
</component>

WebSphere 5

<component name="TransactionManager"
    class="javax.transaction.TransactionManager">
  @com.ibm.ejs.jts.jta.TransactionManagerFactory@getTransactionManager()
</component>

WebSphere 5.1

<component name="TransactionManager"
    class="javax.transaction.TransactionManager">
  @com.ibm.ws.Transction.TransactionManagerFactory@getTransactionManager()
</component>

Oracle 10g AS

<component name="TransactionManager"
    class="javax.transaction.TransactionManager">
  @org.seasar.extension.j2ee.JndiResourceLocator@lookup("java:comp/UserTransaction")
</component>

JBoss

<component name="TransactionManager"
    class="javax.transaction.TransactionManager">
  @org.seasar.extension.j2ee.JndiResourceLocator@lookup("java:/TransactionManager")
</component>