Invoking a remote EJB annotated with @REQUIRES_NEW lead to two-phase commit
Issue
The setup is as follows:
- A Java standalone client invokes a client EJB in a JBoss server
- The client EJB in the server enlists an XAResource
in it's transaction and calls then a EJB on another server which is annotated with @REQUIRES_NEW
The expectation is the the transaction on the client EJB will be committed using one-phase optimization.
Environment
- Red Hat JBoss Enterprise Application Platform (JBoss EAP)
- 7.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.