Hi, I am testing remote server Transaction Context Propagation.

My application is like that and Tomee server version is 1.7.1

                               call
Server A (EJB 1) ========> Server B (EJB 2)
           |                      |
           |                      |
           |                      |
          DB 1                   DB 2

EJB 1 is CMT and @TransactionAttribute(TransactionAttributeType
.REQUIRES_NEW)
EJB 2 is CMT and @TransactionAttribute(TransactionAttributeType.MANDATORY)

I want to execute EJB 1 which works with DB1, then calls EJB 2 which works
with DB2
in a single global transaction.

when EJB 1 calls EJB 2 in  remote server, It throws
TransactionRequiredLocalException Exception.
How to propagate transaction context to the remote server?

Reply via email to