Hang on, now I get threadsafe issues, because the Endpoint is a singleton and this won't work.
I simply had code in my interceptor like:
Code:
public boolean handleRequest(MessageContext messageContext, Object endpoint) throws Exception {
MyEndpoint targetEndpoint = (MyEndpoint) endpoint;
targetEndpoint.setMessageContext(messageContext);
return true;
}
where messageContext is then used within the invokeInternal method of MyEndpoint. But this would not be threadsafe.
I saw on another thread http://forum.springframework.org/showthread.php?t=45894 someone suggest a request scoped bean, but as I mentioned in a comment on that thread, how does it fit in with http://static.springframework.org/sp...ot-interaction
Any thoughts?