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 = "SLSBTimerSrvRefMethodInjection00") 43 @Remote (ItfCheck00.class) 44 public class SLSBTimerSrvRefMethodInjection00 implements ItfCheck00{ 45 46 49 @Resource 50 private SessionContext sessionContext; 51 52 55 private TimerService ts00; 56 57 60 private TimerService ts01; 61 62 66 @Resource(name = "ts/ts00") 67 public void setTimerService00(final TimerService ts) { 68 ts00 = ts; 69 } 70 71 75 @Resource 76 public void setTs01(final TimerService ts) { 77 ts01 = ts; 78 } 79 80 81 87 public void check() { 88 checkResource(sessionContext, ts00, "ts/ts00"); 89 checkResource(sessionContext, ts01, "org.objectweb.easybeans.tests.common." 90 + "ejbs.stateless.containermanaged.timersrvref.SLSBTimerSrvRefMethodInjection00/ts01"); 91 } 92 } 93 | Popular Tags |