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 = "SLSBBeanManagedUtxRefMethodInjection00") 45 @Remote (ItfCheck00.class) 46 @TransactionManagement (value = TransactionManagementType.BEAN) 47 public class SLSBBeanManagedUtxRefMethodInjection00 implements ItfCheck00{ 48 49 52 @Resource 53 private SessionContext sessionContext; 54 55 58 private UserTransaction utx00; 59 60 63 private UserTransaction utx01; 64 65 69 @Resource(name = "utx/utx00") 70 public void setUserTransaction00(final UserTransaction utx) { 71 utx00 = utx; 72 } 73 74 78 @Resource 79 public void setUtx01(final UserTransaction utx) { 80 utx01 = utx; 81 } 82 83 84 90 public void check() { 91 checkResource(sessionContext, utx00, "utx/utx00"); 92 checkResource(sessionContext, utx01, "org.objectweb.easybeans.tests.common.ejbs.stateless.beanmanaged.usertxref." 93 + "SLSBBeanManagedUtxRefMethodInjection00/utx01"); 94 } 95 } 96 | Popular Tags |