Re: Thread Local Storage not working in CXF Interceptors

2012-01-16 Thread Daniel Kulp
On Monday, January 16, 2012 4:00:35 AM Paul Baker wrote: > Hi Daniel, > > Two Questions: > > Questions: > For R&R services, is the same thread used for all phases: inbound > interceptores, service invokation, outbound? In the absence of WS-Addressing or WS-RM (which implies WS-Addressing), then

Re: Thread Local Storage not working in CXF Interceptors

2012-01-16 Thread Paul Baker
void unsetContext() { userThreadLocal.remove(); } Paul -- View this message in context: http://cxf.547215.n5.nabble.com/Thread-Local-Storage-not-working-in-CXF-Interceptors-tp4439646p5148525.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: Thread Local Storage not working in CXF Interceptors

2011-05-31 Thread Daniel Kulp
On Monday, May 30, 2011 1:27:15 PM Blue Diamond wrote: > Hi Sergey, > > Thanks for your quick response. This is how I am starting a JAXRS endpoint > & engaging interceptors: > > JAXRSServerFactoryBean factory = new JAXRSServerFactoryBean(); > factory.setServiceBean(this); > factory.setAddress(url

Re: Thread Local Storage not working in CXF Interceptors

2011-05-30 Thread Blue Diamond
Sorry. My bad. The value being set in TLS was NULL which created the confusion :) Thanks & Regards, Anil On Tue, May 31, 2011 at 12:40 AM, Sergey Beryozkin wrote: > Hi > > On Mon, May 30, 2011 at 6:27 PM, Blue Diamond wrote: > > Hi Sergey, > > > > Thanks for your quick response. This is how I a

Re: Thread Local Storage not working in CXF Interceptors

2011-05-30 Thread Sergey Beryozkin
Hi On Mon, May 30, 2011 at 6:27 PM, Blue Diamond wrote: > Hi Sergey, > > Thanks for your quick response. This is how I am starting a JAXRS endpoint & > engaging interceptors: > > JAXRSServerFactoryBean factory = new JAXRSServerFactoryBean(); > factory.setServiceBean(this); > factory.setAddress(ur

Re: Thread Local Storage not working in CXF Interceptors

2011-05-30 Thread Blue Diamond
Hi Sergey, Thanks for your quick response. This is how I am starting a JAXRS endpoint & engaging interceptors: JAXRSServerFactoryBean factory = new JAXRSServerFactoryBean(); factory.setServiceBean(this); factory.setAddress(url); factory.getInInterceptors().add(new Interceptor1(this)); factory.get

Re: Thread Local Storage not working in CXF Interceptors

2011-05-30 Thread Sergey Beryozkin
Can you describe at what stage you are trying to retrieve a TLS property ? When does the 2nd interceptor run ? thanks, Sergey On Mon, May 30, 2011 at 4:29 PM, Blue Diamond wrote: > Hi, > > I have a couple of SoapInterceptors engaged to my REST/WS service. In the > first interceptor, I am setting

Thread Local Storage not working in CXF Interceptors

2011-05-30 Thread Blue Diamond
Hi, I have a couple of SoapInterceptors engaged to my REST/WS service. In the first interceptor, I am setting a TLS variable. But I am not able to get the TLS variable from inside the second interceptor. Does CXF spawn multiple threads for interceptors? Why is TLS not working in this case? What sh