ITeye博客

jax-ws 设置超时

linsl · 2015-02-12 21:02 · webservice · 编程语言 · Markdown

设置client端请求服务器超时

HelloWorldImplService helloService = new HelloWorldImplService();

HelloWorld hello = helloService.getHelloWorldImplPort();

//((BindingProvider)hello).getRequestContext().put("com.sun.xml.internal.ws.connect.timeout", 5000);

((BindingProvider)hello).getRequestContext().put("com.sun.xml.internal.ws.request.timeout", 6000);

 

 

 

http://stackoverflow.com/questions/2060112/how-to-programmatically-set-jax-ws-2-1-jms-client-timeout-in-websphere-7

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。