aspose file tools
The moose likes Web Services and the fly likes Axis2: Timeout when using setUseSeparateListener(true) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Axis2: Timeout when using setUseSeparateListener(true)" Watch "Axis2: Timeout when using setUseSeparateListener(true)" New topic
Author

Axis2: Timeout when using setUseSeparateListener(true)

emengy bh
Greenhorn

Joined: Feb 11, 2010
Posts: 3
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/JCG/services/JCGService]
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?

Thanks
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Axis2: Timeout when using setUseSeparateListener(true)
 
Similar Threads
Axis2 Http Header
axi2/java and axis2/c adb authentication
Axis2 http Configuration problem
Webservice client timeout call
Axis2 stub Client taking time to get response from a webservice