1 25 package org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.xmldescriptor; 26 27 import javax.ejb.EJB ; 28 import javax.ejb.Remote ; 29 import javax.ejb.Stateful ; 30 import javax.naming.NamingException ; 31 import javax.transaction.NotSupportedException ; 32 import javax.transaction.SystemException ; 33 34 import org.objectweb.easybeans.tests.common.ejbs.base.xmldescriptor.ItfBasicBeanLocal; 35 import org.objectweb.easybeans.tests.common.helper.EJBHelper; 36 37 42 @Stateful 43 @Remote (ItfXmlDescriptorTester.class) 44 public class SFSBXmlDescriptorTester01 implements ItfXmlDescriptorTester { 45 46 49 @EJB (beanName = "SFSBBasicBeanByXMLLocal") 50 private ItfBasicBeanLocal sfsbLocal; 51 52 62 public void verifyBeanTypeElement() throws NamingException , NotSupportedException , SystemException { 63 sfsbLocal.openTransaction(); 64 } 65 66 71 public void verifyBMT() throws Exception { 72 sfsbLocal.verifyBMT(); 73 } 74 75 80 public void verifyBeanMappedName() throws Exception { 81 ItfBasicBeanLocal bean = EJBHelper.getBeanByMappedName("SFSBBasicBeanByXMLMappedLocal"); 82 bean.toString(); 83 } 84 85 } 86 | Popular Tags |