this?
If you do
@Resource
WebServiceContext ctx;
The ctx itself has the HttpServletRequest in it as well.
MessageContext.SERVLET_REQUEST key.
Dan
On Jul 16, 2008, at 8:35 AM, Yair Ben-Meir wrote:
> Hi
>
> I have a class implementing an interface annotated as a web servi
Thanks! This works like a charm.
I m still happy I've learnt about ThreadLocal today...
-Original Message-
From: Ian Roberts [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2008 4:09 PM
To: users@cxf.apache.org
Subject: Re: getting the ip address in the action method
Yair Ben
al Message-
From: David Soroko [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2008 3:42 PM
To: users@cxf.apache.org
Subject: RE: getting the ip address in the action method
How about a thread local?
-Original Message-
From: Yair Ben-Meir [mailto:[EMAIL PROTECTED]
Sent: 16 July
Hi
I have a class implementing an interface annotated as a web service. In the
method of this class, I handle the request.
Now, I want to use the IP of the client in the logic of the method. So I
wrote an interceptor that gets the IP:
public class IpCxfInterceptor extends AbstractPhaseIntercepto