Search in sources :

Example 1 with ServiceLifecycle

use of javax.xml.rpc.server.ServiceLifecycle in project tomee by apache.

the class WsServlet method init.

public void init(ServletConfig config) throws ServletException {
    this.config = config;
    // this is only used by JaxRPC pojo services
    pojo = createPojoInstance();
    if (pojo instanceof ServiceLifecycle) {
        try {
            ((ServiceLifecycle) pojo).init(new InstanceContext(config.getServletContext()));
        } catch (ServiceException e) {
            throw new ServletException("Unable to initialize ServiceEndpoint", e);
        }
    }
    getService();
}
Also used : ServletException(javax.servlet.ServletException) ServiceException(javax.xml.rpc.ServiceException) ServiceLifecycle(javax.xml.rpc.server.ServiceLifecycle)

Aggregations

ServletException (javax.servlet.ServletException)1 ServiceException (javax.xml.rpc.ServiceException)1 ServiceLifecycle (javax.xml.rpc.server.ServiceLifecycle)1