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.
EJBs have always been transactional, irrespective of where they happen to be deployed.