并发使用JaxWsPortProxyFactoryBean [英] Concurrent use of JaxWsPortProxyFactoryBean

查看:293
本文介绍了并发使用JaxWsPortProxyFactoryBean的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 JaxWsPortProxyFactoryBean (Spring 3.1.2)来访问远程Web服务。在文档中,我不能找到任何并发使用 JaxWsPortProxyFactoryBean 。它是否允许与线程同时使用它?如果是这样,是否可以动态更改指针地址,以便不同的线程可以为同一 JaxWsPortProxyFactoryBean

JaxWsPortProxyFactoryBean.setExecutor(java.util.concurrent.Executor)
JaxWsPortProxyFactoryBean.setTaskExecutor(org.springframework.core.task.TaskExecutor)



还有exists方法 JaxWsPortProxyFactoryBean .setWsdlDocumentUrl(String),但它不是线程保存


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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆