Hi
On 03/10/13 10:56, arjjun dhar wrote:
Hi,

can I use



as an instance variable?

Would the service not handle multiple requests and hence it does not seem
intuitive to have such a definition. But it works.

Yes, this works and it is thread-safe

I have an interface; and dont want to introduce an additional param in the
methods for
"HttpServletRequest request;" ... so it seems neat. But Im skeptical of such
use; from a pure Java point.

This is a compromise one needs to do if adding HttpServletRequest into the method signatures is not ideal :-)

The other option can be to do HttpServletRequest access in the filters;

Cheers, Sergey

Any inputs.

thanks



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Contex-protected-HttpServletRequest-request-tp5734718.html
Sent from the cxf-user mailing list archive at Nabble.com.


Reply via email to