Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis2: Timeout when using setUseSeparateListener(true)

 
emengy bh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic