Class EEEntityManagerProvider

  • All Implemented Interfaces:
    EntityManagerProvider

    public class EEEntityManagerProvider
    extends Object
    implements EntityManagerProvider
    Designed to use a container entity manager relying on JTA to commit. The EntityManager is a CDI bean with the qualifier @Named. Default name is "batcheeJpaEm" but it can be customized using "persistence.jpa.ee.entity-manager.name" property. Note: the bean should be scoped @ApplicationScoped. Typically:
    
     @PersistenceContext
     @Produces
     @Named
     private EntityManager batcheeJpaEm;