问题描述
我使用 JaxWsPortProxyFactoryBean
(Spring 3.1.2)来访问远程Web服务。在文档中,我不能找到任何并发使用 JaxWsPortProxyFactoryBean
。它是否允许与线程同时使用它?如果是这样,是否可以动态更改指针地址,以便不同的线程可以为同一 JaxWsPortProxyFactoryBean
?
和
还有exists方法,但它不是线程保存
I'm using JaxWsPortProxyFactoryBean
(Spring 3.1.2) to access a remote web service. In the documentation I can't find anything on concurrent usage of the JaxWsPortProxyFactoryBean
. Is it allowed to use it concurrently with from threads? And if so, is it possible to dynamically change the enpoint address so that different threads can use a different endpoint for the same JaxWsPortProxyFactoryBean
?
About concurrently using you can see:JaxWsPortProxyFactoryBean.setExecutor(java.util.concurrent.Executor)and JaxWsPortProxyFactoryBean.setTaskExecutor(org.springframework.core.task.TaskExecutor)
And also exist method JaxWsPortProxyFactoryBean.setWsdlDocumentUrl(String) but it isn't thread-save
这篇关于并发使用JaxWsPortProxyFactoryBean的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!