I have a JAX-WS Webservice exposed to client. When Client invokes it, messageheader will be populated with UserId. I am trying to set this value in thread local using utility class when request comes from client and remove it before sending response back to client so It can be accessible from anywhere using that variable for that thread scope. What is the best way to implement this.Can I use Filters on server Side or I have to go with Jax-Ws Handlers to initialize this value.And also Can we remove this value before sending response with Jax-ws handlers.
is there any other way to implement it?