wood burning stoves 2.0*
The moose likes Web Services and the fly likes Overriding JAXWS Time out value programmatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Overriding JAXWS Time out value programmatically" Watch "Overriding JAXWS Time out value programmatically" New topic
Author

Overriding JAXWS Time out value programmatically

Aakash Saxena
Greenhorn

Joined: Nov 11, 2012
Posts: 13

I want to configure the time out value for the connection of my web service client with webservice programmatically because I want to control the response time of web services on my own.

I found the following link :

http://www.websphere-world.com/modules.php?name=News&file=article&sid=2058

It says, there are three types of timeout values :

1. CONNECTION_TIMEOUT: The amount of time WebSphere JAX-WS client would wait to establish a http/https connection (default is 180 seconds)

2. WRITE_TIMEOUT: The amount of time the client would wait to finish sending the request (default is 300 seconds)

3. RESPONSE_TIMEOUT: The amount of time the client would wait to finish receiving the response (default is 300 seconds)

I strongly feel i should be overriding RESPONSE_TIMEOUT but I'm not sure whether overriding just the RESPONSE_TIMEOUT will be the cumulative sum of all 3 timeout settings?

Can you please let us know if I am right ?


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Overriding JAXWS Time out value programmatically
 
Similar Threads
Multiple response for a request
How do I set the response timeout for a webservice from a JAXWS-RI 2.1 client
Axis1.2RC2 - set timeout doubt
yesno()
request time out