pzxsheng

有种相见不敢见的伤痛,有种爱还埋藏在心中

1.5版Axis2 timeout问题

在设置超时之后,依然在60秒后保超时错误,很是无语,网上也找了很久,API 也看了。最后发现是1.5的Axis2 由此bug。用1.6.2版本之后就没有问题了。

Axis2 java.net.SocketTimeoutException: Read timed out @import url(http://www.blogjava.net/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

       

        //设置超时

        // This enables the user to pass in socket timeout value as an Integer. If nothing is set, the default value is 60000 milliseconds.

        options.setProperty(HTTPConstants.SO_TIMEOUT, new Integer(600000));

        // This enables the user to pass in connection timeout value as an Integer. If nothing is set, the default value is 60000 milliseconds.

        options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, new Integer(600000));


        options.setTimeOutInMilliSeconds(600000L);

posted on 2014-11-24 17:17 科菱财神 阅读(1364) 评论(0)  编辑  收藏 所属分类: Webservice


只有注册用户登录后才能发表评论。


网站导航:
 

导航

<2014年11月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

统计

常用链接

留言簿(1)

随笔分类

随笔档案

搜索

最新评论

阅读排行榜

评论排行榜