1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.persistenceunitref; 26 27 import static org.objectweb.easybeans.tests.common.helper.ContextHelper.checkEntityManagerFactory; 28 29 import javax.annotation.Resource; 30 import javax.ejb.Remote ; 31 import javax.ejb.SessionContext ; 32 import javax.ejb.Stateless ; 33 import javax.persistence.EntityManagerFactory; 34 35 import org.objectweb.easybeans.tests.common.ejbs.base.ItfCheck00; 36 37 38 43 @Stateless (name = "SLSBPUnitRefXML00") 44 @Remote (ItfCheck00.class) 45 public class SLSBPUnitRefXML00 implements ItfCheck00{ 46 47 50 @Resource 51 private SessionContext sessionContext; 52 53 56 private EntityManagerFactory emf00; 57 58 64 public void check() { 65 checkEntityManagerFactory(sessionContext, emf00, "persistence/pu00"); 66 checkEntityManagerFactory(sessionContext, "persistence/puXMLDeclaration"); 67 } 68 69 } 70 | Popular Tags |