1 22 package org.jboss.test.webservice.ws4eesimple; 23 24 import org.jboss.logging.Logger; 25 26 import javax.ejb.SessionBean ; 27 import javax.ejb.SessionContext ; 28 import java.rmi.RemoteException ; 29 30 public class HelloBean implements SessionBean 31 { 32 private Logger log = Logger.getLogger(HelloBean.class); 33 34 public HelloBean() 35 { 36 log.debug("new HelloBean"); 37 } 38 39 41 public String sayHello(String input) throws RemoteException 42 { 43 log.debug("sayHello: " + input); 44 return "'" + input + "' to you too!"; 45 } 46 47 49 public void ejbCreate() 50 { 51 log.debug("ejbCreate"); 52 } 53 54 public void ejbRemove() 55 { 56 log.debug("ejbRemove"); 57 } 58 59 public void ejbActivate() 60 { 61 log.debug("ejbActivate"); 62 } 63 64 public void ejbPassivate() 65 { 66 log.debug("ejbPassivate"); 67 } 68 69 public void setSessionContext(SessionContext sc) 70 { 71 log.debug("setSessionContext"); 72 } 73 } 74 | Popular Tags |