package org.jboss.test.webservice.samples;
import org.jboss.logging.Logger;
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.server.ServiceLifecycle;
import javax.xml.rpc.server.ServletEndpointContext;
public class OrganizationJSEEndpoint implements Organization, ServiceLifecycle
{
private static final Logger log = Logger.getLogger(OrganizationJSEEndpoint.class);
private ServletEndpointContext ctx;
public String getContactInfo(String organization)
{
log.info("getContactInfo: " + organization);
return "The '" + organization + "' boss is currently out of office, please call again.";
}
public Person jobRequest(Person target)
{
log.info("jobRequest: " + target);
return target;
}
public void init(Object context) throws ServiceException
{
ctx = (ServletEndpointContext)context;
log.info("init: " + ctx);
}
public void destroy()
{
log.info("destroy: " + ctx);
}
}