Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis1.2RC2 - set timeout doubt  RSS feed

 
Ramya Iyer
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This sets the timeout for establishing connection or to get back the response from the webservice?

If time to establish is 3 seconds, will it wait for 12 seconds for response before timing out or will it wait for 12 seconds?

Regards,
Ramya.
 
Travis Hein
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the API documents are 'clear' on that .

Call.setTimeout() populates the timeout property in org.apache.axis.MessageContext.

The (axis-1.4) API documents seem to say this is a maximum amount of time to wait, so that if a reply comes in before this maximum threshold has expired, then the method would not block for the remainder of the unused timeout.

/**
* Maximum amount of time to wait on a request, in milliseconds.
*/
private int timeout = Constants.DEFAULT_MESSAGE_TIMEOUT;


where DEFAULT_MESSAGE_TIMEOUT is 10 minutes.
public static final int DEFAULT_MESSAGE_TIMEOUT=60*1000*10;
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!