1 22 package org.jboss.ejb3.test.regression.ejbthree653; 23 24 import java.rmi.RemoteException ; 25 26 import javax.ejb.EJB ; 27 import javax.ejb.EJBException ; 28 import javax.ejb.Remote ; 29 import javax.ejb.RemoteHome ; 30 import javax.ejb.SessionBean ; 31 import javax.ejb.SessionContext ; 32 import javax.ejb.Stateful ; 33 34 import org.jboss.logging.Logger; 35 36 42 @Stateful 43 @Remote (MyStateful21.class) 44 @RemoteHome (MyStateful21Home.class) 45 public class MyStateful21Bean implements SessionBean 46 { 47 private static final long serialVersionUID = 1L; 48 49 @SuppressWarnings ("unused") 50 private static final Logger log = Logger.getLogger(MyStateful21Bean.class); 51 52 @EJB 53 private MyStateless delegate; 54 55 public void ejbActivate() throws EJBException , RemoteException 56 { 57 } 58 59 public void ejbPassivate() throws EJBException , RemoteException 60 { 61 } 62 63 public void ejbRemove() throws EJBException , RemoteException 64 { 65 } 66 67 public void setSessionContext(SessionContext ctx) throws EJBException , RemoteException 68 { 69 } 70 71 public String sayHelloTo(String name) 72 { 73 return delegate.sayHelloTo(name); 74 } 75 } 76 | Popular Tags |