1 22 package org.jboss.test.webservice.samples; 23 24 import org.jboss.logging.Logger; 25 26 import javax.xml.rpc.ServiceException ; 27 import javax.xml.rpc.server.ServiceLifecycle ; 28 import javax.xml.rpc.server.ServletEndpointContext ; 29 30 36 public class OrganizationJSEEndpoint implements Organization, ServiceLifecycle 37 { 38 private static final Logger log = Logger.getLogger(OrganizationJSEEndpoint.class); 40 41 private ServletEndpointContext ctx; 42 43 public String getContactInfo(String organization) 44 { 45 log.info("getContactInfo: " + organization); 46 return "The '" + organization + "' boss is currently out of office, please call again."; 47 } 48 49 51 public void init(Object context) throws ServiceException 52 { 53 ctx = (ServletEndpointContext )context; 54 log.info("init: " + ctx); 55 } 56 57 60 public void destroy() 61 { 62 log.info("destroy: " + ctx); 63 } 64 } 65 | Popular Tags |