且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JAX-WS客户端线程安全吗?

更新时间:2023-09-11 22:01:40

对于JAX-WS/Metro,这绝对不是线程安全的.***的选择是创建一个代理池,并在需要时从池中提取代理,进行配置,使用,清除设置值,然后返回到池中.

For JAX-WS/Metro, that's definitely not thread safe. The best bet is to create a Pool of proxies and, when needed, pull a proxy from the pool, configure it, use it, clear the set values, return to the pool.

或使用CXF.