1 Reply Latest reply on Oct 18, 2012 12:01 AM by Stephen Coy

    Remote tx propagated by default in server-server invocation?

    raylite3 Apprentice

      Hello,

      I am using JBoss 7.1.1.Final.

       

      I have 2 servers A and B with 2 different bean1 and bean2 deployed in them respectively. Bean1 and Bean2 are stateless beans with CMT.

       

      From bean2.myMethod(), I invoke bean1.method1() and bean1.method2(). In method1 and method2 when I use TransactionSynchronizationRegistry.getTransactionKey(), I see the same transaction key. I print it out to System out and I see the same string printed out.

       

      myMethod() {

          bean1.method1();

       

          bean1.method2();

      }

       

      method1() {

          System.out.println(tsr.getTransactionKey());

      }

       

      Is this expected behavior ? Is there any configuration that controls this behavior?

      Thanks for any clarifications.