1 22 package org.jboss.ejb3.test.initial; 23 24 import javax.ejb.EJB ; 25 import javax.ejb.EJBs ; 26 import javax.annotation.Resource; 27 import javax.ejb.Remote ; 28 import javax.ejb.SessionContext ; 29 import javax.ejb.Stateless ; 30 31 32 36 @Stateless 37 @EJBs ({@EJB (name="injected", beanInterface=org.jboss.ejb3.test.initial.TestStatus.class, beanName="TestStatusBean")}) 38 @Remote (ClassInjected.class) 39 public class ClassInjectedBean implements ClassInjected 40 { 41 @Resource 42 SessionContext ctx; 43 44 public boolean isInjected() throws Exception 45 { 46 TestStatus status = (TestStatus)ctx.lookup("injected"); 47 return true; 48 } 49 } 50 | Popular Tags |