Hi Rolf,
Thanks for your quick response. I’m still a bit confused and not able to get the timeout behaviour that I need.
I’m trying to force the sendReceive call to timeout quickly when my server has gone down.
I’m calling the setDefaultWaittime to “10S”, which I thought would cause my sendReceive to timeout if it takes longer than 10 seconds. I’ve also tried setting wait parameter on each sendReceive call.
I am getting a socket connection timeout but it takes awhile. I would like to force it to timeout quicker. Since sockets are being allocated by the broker, I don’t see how I can set the connection timeout time.
I’ve tried setting the system property: sun.net.client.defaultConnectTimeout but that doesn’t seem to affect it. The documentation says this is used to set the default connect timeout for the protocol handler used by java.net.URLConnection - a socket connect doesn’t use this protocol handler, does it?
Here is what I’m seeing in my trace:
2008-10-21 10:26:46.696/main Allocating new socket for 204.230.205.22:1900 (1)
2008-10-21 10:26:46.696/Thread-0 CleanupPool: started, timeout = 300000
2008-10-21 10:27:05.243/main Broker Error 0013 0315: Socket connect failed for 204.230.205.22:1900 (java.net.ConnectException: Connection timed out: connect)
Exception: Socket connect failed for 204.230.205.22:1900 (java.net.ConnectException: Connection timed out: connect)
Thanks again for your help.
Peggy
#EntireX#webMethods#Mainframe-Integration