| Scott, I really have no idea what you are advocating nor what you want to have happen here. The issue says there is a problem calling #getTransaction, which is illegal in a JTA context. So again, this cannot be a JTA context or else the test is incorrectly calling it, in which case the IllegalStateException is actually expected:
interface EntityManager {
...
/**
* Return the resource-level <code>EntityTransaction</code> object.
* The <code>EntityTransaction</code> instance may be used serially to
* begin and commit multiple transactions.
* @return EntityTransaction instance
* @throws IllegalStateException if invoked on a JTA
* entity manager
*/
public EntityTransaction getTransaction();
}
So I'm not sure why we keep talking about JTA |