Thanks a lot, I'm really grateful. will it be available in 4.0.10 ? On 17/08/10 19:02, Scott Ferguson wrote: > Riccardo Cohen wrote: >> Hi >> Did you found a "magic" way to have webservicecontext in this case ? :) >> > > Somewhat. I'm adding a WebServiceContextProxy with a ThreadLocal that > grabs the WebServiceContext associated with the servlet. > > CXF itself has a WebServiceContextImpl that has its own ThreadLocal, so > we're going to have a ThreadLocal pointing to a second ThreadLocal :) > > -- Scott > >> Thanks a lot. >> >> -------- Original Message -------- >> Subject: Re: [Resin-interest] getting webservicecontext in a cxf soap >> servlet >> Date: Thu, 12 Aug 2010 12:12:53 +0200 >> From: Riccardo Cohen<r...@architectedulogiciel.fr> >> Reply-To: General Discussion for the Resin application server >> <resin-interest@caucho.com> >> Organization: Architecte du Logiciel >> To: General Discussion for the Resin application server >> <resin-interest@caucho.com> >> References:<4c62a51c.5030...@architectedulogiciel.fr> >> <4c6308af.1020...@caucho.com> >> >> I did as described in the CXF wiki (http://wiki.caucho.com/CXF), except >> that I ran the code generator (wsdl2java) tool to start from an existing >> wsdl. Here is the config: >> >> <servlet-mapping url-pattern="/CarteMusique/*" >> servlet-class="ms.CarteMusiqueWSAction"> >> <protocol uri="cxf:"/> >> </servlet-mapping> >> >> Here is the full code of a small sample : >> >> http://www.architectedulogiciel.fr/download/tmp/testws.zip >> >> Scott Ferguson wrote: >> >>> Riccardo Cohen wrote: >>> >>>> Hello >>>> I successfully wrote a soap web service with cxf (in resin 4.0.9) and I >>>> need to check the IP of the caller. I need the servlet context, and >>>> found some thread about this. >>>> I tried to add : >>>> >>>> @Resource public WebServiceContext wscontext; >>>> >>>> in the servlet, but have the error message : >>>> >>>> ms.CarteMusiqueWSAction.wscontext @Resource cannot find any matching >>>> resources with type='interface javax.xml.ws.WebServiceContext' in >>>> InjectManager[web-app:http://default] >>>> >>>> I suppose that something is missing but what ? >>>> >>>> >>> How are you configuring the service in Resin? >>> >>> It looks like we'll need to do a little bit of magic to make it work, >>> but I need to make sure I'm looking at it the same way you're using it. >>> >>> -- Scott >>> >>>> Thanks for any suggestion. >>>> >>>> >>>> >>> >>> _______________________________________________ >>> resin-interest mailing list >>> resin-interest@caucho.com >>> http://maillist.caucho.com/mailman/listinfo/resin-interest >>> >>> >> >> > > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest >
-- Riccardo Cohen Architecte du Logiciel http://www.architectedulogiciel.fr +33 (0)6.09.83.64.49 Membre du réseau http://www.reflexe-conseil-centre.org _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest