Hi Transactions are local until you use a XA system. EJB doesnt handle that in tomee bit if the ejb2 call throws an exception and propagates it in ejb1 then a rollback will be done in both systems.
Le 19 nov. 2017 13:25, "Thiago Rodrigues" <justoga...@gmail.com> a écrit : 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?