// The whole web app should have a single adapter list
// This is to enable JAXWS publish WSDLs with proper addresses
ServletAdapter adapter;
synchronized (this) {
ServletAdapterList list =
(ServletAdapterList) servletContext.getAttribute("ADAPTER_LIST");
if (list == null) {
list = new ServletAdapterList();
servletContext.setAttribute("ADAPTER_LIST", list);
}
adapter =
list.createAdapter(endpoint.getName(), urlPattern, wsep);
container.addEndpoint(adapter);
}
registerEndpointUrlPattern(urlPattern, adapter);