Concurrent use of JaxWsPortProxyFactoryBean

2019-06-07 00:49发布

问题:

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