joinTransaction() - JPA EntityManager's method

Method
javax.persistence.EntityManager
void joinTransaction()

Indicate to the entity manager that a JTA transaction is active. This method should be called on a JTA application managed entity manager that was created outside the scope of the active transaction to associate it with the current JTA transaction.
Throws:
TransactionRequiredException - if there is no transaction
Since:
JPA 1.0