void joinTransaction()
Indicate to the entity manager that a JTA transaction is active and join the persistence context to it.
This method should be called on a JTA application managed entity manager that was created outside the scope of the active transaction or on an entity manager of type SynchronizationType.UNSYNCHRONIZED
to associate it with the current JTA transaction.
- Throws:
- TransactionRequiredException - if there is no transaction
- Since:
- JPA 1.0