1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.timersrvref; 26 27 import static org.objectweb.easybeans.tests.common.helper.ContextHelper.checkResource; 28 29 import javax.annotation.Resource; 30 import javax.ejb.Remote ; 31 import javax.ejb.SessionContext ; 32 import javax.ejb.Stateless ; 33 import javax.ejb.TimerService ; 34 35 import org.objectweb.easybeans.tests.common.ejbs.base.ItfCheck00; 36 37 42 @Stateless (name = "SLSBTimerSrvRefFieldInjection00") 43 @Remote (ItfCheck00.class) 44 public class SLSBTimerSrvRefFieldInjection00 implements ItfCheck00 { 45 46 49 @Resource 50 private SessionContext sessionContext; 51 52 55 @Resource(name = "ts/ts00") 56 private TimerService ts00; 57 58 61 @Resource 62 private TimerService ts01; 63 64 65 71 public void check() { 72 checkResource(sessionContext, ts00, "ts/ts00"); 73 checkResource(sessionContext, ts01, "org.objectweb.easybeans.tests.common.ejbs." 74 + "stateless.containermanaged.timersrvref.SLSBTimerSrvRefFieldInjection00/ts01"); 75 } 76 77 } 78 | Popular Tags |