Concurrent use of JaxWsPortProxyFactoryBean

跟風遠走 提交于 2020-01-14 04:27:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!