Amila , If somebody cannot change the service then what would be the approach ?
Partha ________________________________________ From: Amila Suriarachchi [[email protected]] Sent: Monday, February 22, 2010 1:46 AM To: [email protected] Cc: [email protected] Subject: Re: Timeout when using setUseSeparateListener(true) On Sun, Feb 21, 2010 at 3:46 PM, emengy <[email protected]<mailto:[email protected]>> wrote: Hi, I'd written an asynchronous client with axis2.4.1 . Since I want to execute a long task on the server side I added the following lines: stub._getServiceClient().engageModule("addressing"); stub._getServiceClient().getOptions().setUseSeparateListener(true); Which as far as I understand use WS_ADDRESSING to create a "true" callback from the server side and avoid connection timeouts. Surprisely I'm still getting timeout after the default time defined in conf\axis2.xml INFO: Unable to sendViaPost to url[http://localhost:8080/HOST/services/MyService] java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) Any idea why this happen? you need to set the "messageReceiver.invokeOnSeparateThread" parameter to the service at the server side. i.e. set this parameter value true at services.xml what is the axis2 version you use? Amila. Thanks -- View this message in context: http://old.nabble.com/Timeout-when-using-setUseSeparateListener%28true%29-tp27674313p27674313.html Sent from the Axis - User mailing list archive at Nabble.com. -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
