1 25 package org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.ejb2view; 26 27 import javax.ejb.EJB ; 28 import javax.ejb.Remote ; 29 import javax.ejb.Stateful ; 30 31 37 @Stateful 38 @Remote (ItfEjb2Client.class) 39 @EJB (beanName = "SimpleEjb2Bean", name = "ejb/SimpleEjb2", beanInterface = SimpleEjb2Home.class) 40 public class SFSBEjb2Client extends Ejb2Client{ 41 42 45 @EJB (beanName = "SimpleEjb2Bean") 46 private SimpleEjb2Home beanHome; 47 48 49 53 @Override 54 public SimpleEjb2Home getBeanHome() { 55 return beanHome; 56 } 57 58 59 63 @Override 64 public String getBeanName() { 65 return "java:comp/env/ejb/SimpleEjb2"; 66 } 67 68 69 } 70 | Popular Tags |