2 Replies Latest reply on Aug 1, 2007 8:55 AM by marklittle

    OTS resource enlistment

    ivanneto

      There are some threads on this forum about WS-TX/JTA bridging. I was wondering how things work with OTS. Suppose I have two EJBs (A and B) deployed in different JBoss instances. If EJB A makes a transactional call (using IIOP) to EJB B and EJB B uses a database, is an org.omg.CosTransactions.Resource automatically registered with the coordinator of the transaction propagated in the IIOP call from A to B? Or I (JBossTS user) need to explicitly get the XAResource, wrap it in an org.omg.CosTransactions.Resource and then call org.omg.CosTransactions.Coordinator.register_resource()?

      Thanks in advance.

        • 1. Re: OTS resource enlistment
          marklittle

          The aim is to support bridging for all transaction implementations. So WST-to-OTS, WST-to-JTA(local), WST-to-JTA(OTS) etc. When it's all done, it should all be opaque to the application developer.

          • 2. Re: OTS resource enlistment
            marklittle

            BTW, in case I misinterpreted your request: if you're asking whether you can register an OTS Resource into a JTA transaction, the answer is yes and that's always been the case with JBossTS.