What to put into jta-data-source of persistence.xml?

The problem is that Persistence.createEntityManagerFactory(“abc”) is the “do it yourself” API and doesn’t take advantage of the Embedded EJB Container. You can get a container managed EntityManager in your test case very easily. Just as with the related jndi/datasource question I recommend you check out the examples in the examples.zip. They’re all designed to take … Read more