The Java Persistence API defines EntityTransaction interface. Which statement is correct?
Answer(s)
- - It is used to control transactions on JTA entity managers.
- - It is used to control transactions on resource-local entity managers.
- - All methods of this interface will throw IllegalstateException if a transaction is NOT active.
- - Calling getTransaction method on a closed entity manager will throw an IllegalstateException.
Correct Answer - It is used to control transactions on resource-local entity managers.