Inside an UserTransaction I call a method on another stateless
EJB. When I rollback this transaction, the entity created in the EJB method is not rolled back. I use EJB 3.1 with JPA 2.0. The transaction begins in doTheTransaction():
The RandomEJB:
To be complete, here is the essential part of SomeEntity:
If you are interested, this is my persistence.xml:
Why is the entity created in RandomEJB not rollback, while the entity created directly inside the transaction is?