1 22 package org.jboss.test.jrmp.ejb; 23 24 import java.rmi.RemoteException ; 25 import javax.ejb.CreateException ; 26 import javax.ejb.SessionBean ; 27 import javax.ejb.SessionContext ; 28 29 import org.jboss.test.jrmp.interfaces.IString; 30 31 36 public class StatelessSessionBean implements SessionBean 37 { 38 static org.jboss.logging.Logger log = 39 org.jboss.logging.Logger.getLogger(StatelessSessionBean.class); 40 41 private SessionContext sessionContext; 42 43 public void ejbCreate() throws CreateException 44 { 45 log.debug("StatelessSessionBean.ejbCreate() called"); 46 } 47 48 public void ejbActivate() 49 { 50 log.debug("StatelessSessionBean.ejbActivate() called"); 51 } 52 53 public void ejbPassivate() 54 { 55 log.debug("StatelessSessionBean.ejbPassivate() called"); 56 } 57 58 public void ejbRemove() 59 { 60 log.debug("StatelessSessionBean.ejbRemove() called"); 61 } 62 63 public void setSessionContext(SessionContext context) 64 { 65 sessionContext = context; 66 } 67 68 public String echo(String arg) 69 { 70 log.debug("StatelessSessionBean.echo, arg="+arg); 71 return arg; 72 } 73 74 public IString copy(String arg) 75 { 76 log.debug("StatelessSessionBean.copy, arg="+arg); 77 return new AString(arg); 78 } 79 } 80 | Popular Tags |