private static URL resolveCallbackWsdlLocation(QName callbackService, SoapMessage message) { final WSDLManager wsdlManager = message.getExchange().getBus().getExtension(WSDLManager.class); for (Map.Entry<Object, Definition> entry : wsdlManager.getDefinitions().entrySet()) { if (entry.getValue().getService(callbackService) != null) { final Object key = entry.getKey();
private void deployEndpoints(Collection<EndpointConfig> endpointConfigs) { for (Endpoint endpoint : endpoints) { endpoint.stop(); } endpoints.clear(); WSDLManager wsdlManager = WSDLManagerDefinitionCacheCleaner.getWsdlManager(); for (Definition def : new ArrayList<>(wsdlManager.getDefinitions().values())) { wsdlManager.removeDefinition(def); } for (EndpointConfig config : endpointConfigs) { try { pluginClassLoader.set(config.getClassLoader()); currentConfig.set(config); Endpoint endpoint; try { endpoint = Endpoint.create(config.getImplementor()); configureEndpoint(config, endpoint); endpoint.publish(config.getPath()); } finally { currentConfig.remove(); } customizeEndpoint(config, endpoint); CxfPlugin.this.endpoints.add(endpoint); } finally { pluginClassLoader.remove(); } } }