2 Replies Latest reply on Jan 12, 2005 11:05 AM by japaz

    Use of  Jotm in Jboss.

    japaz

      I have developed the necessary classes to use Jotm as a transaction manager in Jboss. I only performed some simple test involving two Jboss servers. The tests included some error conditions to see the correct propagation of rollback between the servers.
      When I developed this classes I was thinking on using it with two or
      more Jboss servers. I wasn't think in an scenery with different transaction managers. But I realized that perhaps its necessary to modify JotmTransactionPropagationContextImporter to work with other transaction propagation contexts.
      I have implemented this module for Jboss 3.x, but when I tried to make it run with Jboss 4.x, I noticed that I need to implement a new interface JBossXATerminator.
      Jboss' JCA WorkManager implementation delegates the association between works and transactions to the transaction manager, making necessary to adapt any transaction manager to be used with JBoss. I think that I've find the way to implement this in the MBean for Jotm. I have separated the association of works and transactions in a new class, but is still needed a small modification in Jotm code, to be able to release the transaction associated with the current thread without the need of ending the transaction. My knowledge of JCA is limited, and I don't know if this is really needed.
      I think that if is not possible to modify the WorkManager to store the relation between works and transactions, the documentation must be modified to reflect the need of implementing the new interface to use other transaction manager with Jboss.

        • 1. Re: Use of  Jotm in Jboss.

          I wrote an FAQ on this:
          http://www.jboss.org/wiki/Wiki.jsp?page=3rdPartyTM

          It is not necessary for the TransactionManager to implement XATerminator
          only that the TransactionManagerService tells you what implements it.

          As for tidying up associations, this could be done with a Transaction synchronization
          rather than modifying the transaction manager.

          I am interested in a generic JBossXATerminator implementation that works
          for other tranaction managers. Obviously doing it inside the TM is slightly more
          optimized but does lead to tight binding between the JTA and JCA implementations.

          If you can tell me your sourceforge id, I will get you cvs access so you can add your integration to the varia module.

          • 2. Re: Use of  Jotm in Jboss.
            japaz

            I have made more test with the integration, and I've realized that is not running as intended, so I'm going to wait until I fix it to add it to the repository (Bill have give me access to the repository already).