1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.beanmanaged.usertxref; 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 = "SLSBBeanManagedUtxRefDeclaration00") 44 @Remote (ItfCheck00.class) 45 @Resources({@Resource(name = "utx/utx00", type = javax.transaction.UserTransaction .class), 46 @Resource(name = "utx/utx01", type = javax.transaction.UserTransaction .class)}) 47 @Resource(name = "utx/utx02", type = javax.transaction.UserTransaction .class) 48 public class SLSBBeanManagedUtxRefDeclaration00 implements ItfCheck00 { 49 50 53 @Resource 54 private SessionContext sessionContext; 55 56 62 public void check() { 63 checkResource(sessionContext, "utx/utx00"); 64 checkResource(sessionContext, "utx/utx01"); 65 checkResource(sessionContext, "utx/utx02"); 66 } 67 } 68 | Popular Tags |