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
EntityManager entityManager = EntityManagerService.provideEntityManager();