How to propagate a client-side UserTransaction into a stateless session bean using BMT
问题 This scenario using CMT is working: Stateless session bean with CMT, one method annotated with @TransactionAttribute(TransactionAttributeType.MANDATORY) . Within this method, a record is written into a RDBMS using an XA data source and plain JDBC. The stand-alone client (separate JVM, command-line Java application) is getting a UserTransaction from the application server (by JNDI lookup), starts the transaction, and calls the EJB. If the client commits the UserTransaction , the record is