0 Replies Latest reply on Aug 31, 2005 10:50 AM by Daniel Georges

    Use Bean-Managed Transaction in 2 Session BEans

    Daniel Georges Newbie


      I'm using JBoss 3.2.x

      Here is what I'd like to do:

      1. Start a bean-managed transaction within a stateless session bean (S1)
      2. do a lookup to a second stateless session bean (S2)
      3. do something within S2 (no own transaction is inititated, I want to use the on of S1)
      4. Commit the transaction within S1

      My Problem is, that m operation in S2 is not part of transaction, but I want S2 to use the transaction of S1. I know that ther is a <trans-attribute>Supports</trans-attribute> for <container-transaction>, but I'm using <transaction-type>Bean</transaction-type>.
      What can I do, to include the transaction in S2?

      Thanks in advance