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.ejb.Remote ; 31 import javax.ejb.SessionContext ; 32 import javax.ejb.Stateless ; 33 import javax.ejb.TransactionManagement ; 34 import javax.ejb.TransactionManagementType ; 35 import javax.transaction.UserTransaction ; 36 37 import org.objectweb.easybeans.tests.common.ejbs.base.ItfCheck00; 38 39 44 @Stateless (name = "SLSBBeanManagedUtxRefFieldInjection00") 45 @Remote (ItfCheck00.class) 46 @TransactionManagement (value = TransactionManagementType.BEAN) 47 public class SLSBBeanManagedUtxRefFieldInjection00 implements ItfCheck00 { 48 49 52 @Resource 53 private SessionContext sessionContext; 54 55 58 @Resource(name = "utx/utx00") 59 private UserTransaction utx00; 60 61 64 @Resource 65 private UserTransaction utx01; 66 67 68 74 public void check() { 75 checkResource(sessionContext, utx00, "utx/utx00"); 76 checkResource(sessionContext, utx01, "org.objectweb.easybeans.tests.common.ejbs." 77 + "stateless.beanmanaged.usertxref.SLSBBeanManagedUtxRefFieldInjection00/utx01"); 78 } 79 80 } 81 | Popular Tags |