1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.ejbref; 26 27 import static org.objectweb.easybeans.tests.common.helper.ContextHelper.checkBeanRef; 28 29 import javax.annotation.Resource; 30 import javax.ejb.EJB ; 31 import javax.ejb.EJBs ; 32 import javax.ejb.Remote ; 33 import javax.ejb.SessionContext ; 34 import javax.ejb.Stateless ; 35 36 import org.objectweb.easybeans.tests.common.ejbs.base.ItfEJBRef; 37 import org.objectweb.easybeans.tests.common.ejbs.base.ItfOneMethod01; 38 39 40 46 @Stateless (name = "SLSBEjbRefDeclaration") 47 @Remote (ItfEJBRef.class) 48 @EJBs ({ 49 @EJB (name = "ejb/bean00", beanInterface=ItfOneMethod01.class), 50 @EJB (name = "ejb/bean01", beanInterface=ItfOneMethod01.class, mappedName="org.objectweb.easybeans.tests.common.ejbs.base." 51 + "EJBInjectionBean_org.objectweb.easybeans.tests.common.ejbs.base.ItfOneMethod01@Remote"), 52 @EJB (name = "ejb/bean02", beanInterface = ItfOneMethod01.class, beanName = "EJBInjectionBean", description = "bean02", 53 mappedName = "org.objectweb.easybeans.tests.common.ejbs.base.EJBInjectionBean_org.objectweb.easybeans.tests.common." 54 + "ejbs.base.ItfOneMethod01@Remote"), 55 @EJB (name = "ejb/bean03", beanInterface=ItfEJBRef.class), 56 @EJB (name = "ejb/bean04", beanInterface=ItfEJBRef.class, mappedName="org.objectweb.easybeans.tests.common.ejbs.stateless." 57 + "containermanaged.ejbref.SLSBEjbRefMethodInjection_org.objectweb.easybeans.tests.common." 58 + "ejbs.base.ItfEJBRef@Remote"), 59 @EJB (name = "ejb/bean05", beanInterface = ItfEJBRef.class, beanName = "EJBInjectionBean", description = "bean05", 60 mappedName = "org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.ejbref." 61 + "SLSBEjbRefMethodInjection_org.objectweb.easybeans.tests.common.ejbs.base.ItfEJBRef@Remote") 62 }) 63 @EJB (name = "ejb/bean06", beanInterface=ItfEJBRef.class, mappedName="org.objectweb.easybeans.tests.common." 64 + "ejbs.stateless.containermanaged.ejbref.SLSBEjbRefMethodInjection_org.objectweb.easybeans.tests." 65 + "common.ejbs.base.ItfEJBRef@Remote") 66 public class SLSBEjbRefDeclaration implements ItfEJBRef{ 67 68 71 @Resource 72 private SessionContext ctx; 73 74 77 public void check00() { 78 checkBeanRef(ctx, "ejb/bean00", ItfOneMethod01.class); 79 } 80 81 84 public void check01() { 85 checkBeanRef(ctx, "ejb/bean01", ItfOneMethod01.class); 86 } 87 88 91 public void check02() { 92 checkBeanRef(ctx, "ejb/bean02", ItfOneMethod01.class); 93 } 94 95 98 public void check03() { 99 checkBeanRef(ctx, "ejb/bean03", ItfEJBRef.class); 100 } 101 102 105 public void check04() { 106 checkBeanRef(ctx, "ejb/bean04", ItfEJBRef.class); 107 } 108 109 112 public void check05() { 113 checkBeanRef(ctx, "ejb/bean05", ItfEJBRef.class); 114 } 115 116 119 public void check06() { 120 checkBeanRef(ctx, "ejb/bean06", ItfOneMethod01.class); 121 } 122 123 } 124 | Popular Tags |