I'm having multiple <int-ws:inbound-gateway> defined for the different web-services of my application. For some of these web-services I'm trying to enable security. Currently I do this via the uriEndpointMapping:
Although this works nicely, it implies that the xwsSecurityInterceptor operates on any of the endpoint mappings. How can I change this? Is it possible to define them on a per endpoint mapping basis?Code:@Bean public UriEndpointMapping uriEndpointMapping() { UriEndpointMapping endpointMapping = new UriEndpointMapping(); Map<String, Object> endpointMap = new HashMap<String, Object>(); endpointMap.put("http://localhost:7001/ws/notification", notificationInboundGateway); endpointMap.put("http://localhost:7001/ws/echo", echoInboundGateway); endpointMapping.setEndpointMap(endpointMap); EndpointInterceptor[] interceptors = {xwsSecurityInterceptor}; endpointMapping.setInterceptors(interceptors); return endpointMapping; }
Any hints/suggestions are welcome.
Thanks,
Vincent


Reply With Quote