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

Read Time Out

 
Santosh Raveendran
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am facing read time out when pulling data using web service i am using axis2 as the client , can any one advice on steps to prevent it .

error message displayed is

java.net.SocketTimeoutException: Read timed out
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Might want to try this:
Re:Help preventing SocketTimeOut in WebService

Jarek Gawor wrote:
Greeter greeter = service.getPort(Greeter.class);
javax.xml.ws.BindingProvider binding = (javax.xml.ws.BindingProvider)greeter;
binding.getRequestContext().put(org.apache.axis2.transport.http.HTTPConstants.SO_TIMEOUT, new Integer(900000));


Axis2 1.4.1: HTTP Transport - Timeout Configuration

It seems that some versions of Axis2 may have had problems picking up the timeout settings from the properties.
[jira] Updated: (AXIS2-2022) setting HTTPConstants.SO_TIMEOUT option doesnt seems to work
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic