3.5.2.2.4. Error handling

If a JTA DataSource is not available when the EntityManager is created, an IllegalArgumentException will be thrown. The EntityManager will not fall back to the JTA DataSource defined in the configuration.

The same logic applies if a Non-JTA DataSource is not available when the EntityManager is created. OpenJPA will not fall back to the configured Non-JTA DataSource.