问题
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
?
回答1:
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
来源:https://stackoverflow.com/questions/12783286/concurrent-use-of-jaxwsportproxyfactorybean