1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.ejbref; 26 27 import static org.objectweb.easybeans.tests.common.helper.ContextHelper.checkBeanRef; 28 29 import javax.annotation.Resource; 30 import javax.ejb.Remote ; 31 import javax.ejb.SessionContext ; 32 import javax.ejb.Stateless ; 33 34 import org.objectweb.easybeans.tests.common.ejbs.base.ItfEJBInjection; 35 import org.objectweb.easybeans.tests.common.ejbs.base.ItfOneMethod01; 36 37 38 44 @Stateless (name = "SLSBEjbRefXML") 45 @Remote (ItfEJBInjection.class) 46 public class SLSBEjbRefXML implements ItfEJBInjection{ 47 48 51 @Resource 52 private SessionContext ctx; 53 54 57 private ItfOneMethod01 bean; 58 59 62 public void checkInjection() { 63 assert bean.getBool(); 64 checkBeanRef(ctx, "ejb/bean00", ItfOneMethod01.class); 65 } 66 67 } 68 | Popular Tags |