1 22 package org.jboss.test.webservice.samples; 23 24 import org.jboss.logging.Logger; 25 26 import javax.ejb.EJBException ; 27 import javax.ejb.SessionBean ; 28 import javax.ejb.SessionContext ; 29 import java.rmi.RemoteException ; 30 31 37 public class OrganizationEJBEndpoint implements SessionBean 38 { 39 private static final Logger log = Logger.getLogger(OrganizationEJBEndpoint.class); 41 42 public String getContactInfo(String organization) throws RemoteException 43 { 44 log.info("getContactInfo: " + organization); 45 return "The '" + organization + "' boss is currently out of office, please call again."; 46 } 47 48 50 public void ejbCreate() 51 { 52 } 53 54 public void setSessionContext(SessionContext ctx) throws EJBException , RemoteException 55 { 56 } 57 58 public void ejbRemove() throws EJBException , RemoteException 59 { 60 } 61 62 public void ejbActivate() throws EJBException , RemoteException 63 { 64 } 65 66 public void ejbPassivate() throws EJBException , RemoteException 67 { 68 } 69 } 70 | Popular Tags |