1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.persistencectxref; 26 27 import static org.objectweb.easybeans.tests.common.helper.ContextHelper.checkEntityManager; 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.EntityManager; 34 35 import org.objectweb.easybeans.tests.common.ejbs.base.ItfCheck00; 36 37 38 43 @Stateless (name = "SLSBPCtxRefXML00") 44 @Remote (ItfCheck00.class) 45 public class SLSBPCtxRefXML00 implements ItfCheck00{ 46 47 50 @Resource 51 private SessionContext sessionContext; 52 53 56 private EntityManager em00; 57 58 64 public void check() { 65 checkEntityManager(sessionContext, em00, "persistence/pu00"); 66 checkEntityManager(sessionContext, "persistence/puXMLDeclaration"); 67 } 68 69 } 70 | Popular Tags |