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();
}
Aggregations