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.annotation.Resources; 31 import javax.ejb.Remote ; 32 import javax.ejb.SessionContext ; 33 import javax.ejb.Stateless ; 34 35 import org.objectweb.easybeans.tests.common.ejbs.base.ItfCheck00; 36 37 43 @Stateless (name = "SLSBTimerSrvRefDeclaration00") 44 @Remote (ItfCheck00.class) 45 @Resources({@Resource(name = "ts/ts00", type = javax.ejb.TimerService .class), 46 @Resource(name = "ts/ts01", type = javax.ejb.TimerService .class)}) 47 @Resource(name = "ts/ts02", type = javax.ejb.TimerService .class) 48 public class SLSBTimerSrvRefDeclaration00 implements ItfCheck00 { 49 50 53 @Resource 54 private SessionContext sessionContext; 55 56 62 public void check() { 63 checkResource(sessionContext, "ts/ts00"); 64 checkResource(sessionContext, "ts/ts01"); 65 checkResource(sessionContext, "ts/ts02"); 66 } 67 } 68 | Popular Tags |