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 (ItfEjb2LocalClient.class) 39 @EJB (beanName = "SimpleEjb2Bean", name = "ejb/SimpleEjb2Local", beanInterface = SimpleEjb2LocalHome.class) 40 public class SFSBEjb2LocalClient extends Ejb2LocalClient{ 41 42 45 @EJB (beanName = "SimpleEjb2Bean") 46 private SimpleEjb2LocalHome beanHome; 47 48 49 53 @Override 54 public SimpleEjb2LocalHome getBeanHome() { 55 return beanHome; 56 } 57 58 59 63 @Override 64 public String getBeanName() { 65 return "java:comp/env/ejb/SimpleEjb2Local"; 66 } 67 68 69 } 70 | Popular Tags |