Hi,

Yes, as interceptors are stateless, so it's thread safe.

Back to your code, the question is if cxf client proxy thread safe, it's thread 
safe in most cases, take a look at [1] to get more details

[1]http://cxf.apache.org/faq.html#FAQ-AreJAXWSclientproxiesthreadsafe
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋

On 2013-3-22, at 上午1:40, ep wrote:

> is this code threadsafe ???
> 
> public class testclass {
> static{
> JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
> factory.getInInterceptors().add(new LoggingInInterceptor());
> factory.getOutInterceptors().add(new LoggingOutInterceptor());
> factory.setServiceClass(HelloWorld.class);
> factory.setAddress("http://localhost:9000/helloWorld";);
> HelloWorld client = (HelloWorld) factory.create();
> }
> 
> public void callService(){
> System.Out.println(client.sayHi("HI");)
> }
> 
> }
> 
> 
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/are-the-logging-interceptors-threadsafe-tp5724942.html
> Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to