EntityManager, HQL queries, HQL filters …
To easily retrieve the EntityManager
Create a new class in your project which extends AbstractEntityManagerProvider (this class comes from gazelle-seam-tools-jar)
create a new file at ${YOUR_EJB}/src/main/resources/META-INF/services/net.ihe.gazelle.hql.providers.EntityManagerProvider which contains the full name of the class (package + class name) of the class which extends AbstractEntityManagerProvider
How to use it ?
EntityManager entityManager = EntityManagerService.provideEntityManager();