Java Web Start is ignoring network timeout system properties
843802Apr 24 2006 — edited May 10 2006Hi,
I'm using network timeout system properties for Java 1.4.2 ( -Dsun.net.client.defaultConnectTimeout=3000 -Dsun.net.client.defaultReadTimeout=3000). When I run my application from command line these properties affect HttpURLConnection in an expected manner. But when I start the same code using Java Web Start, these properties are completely ignored! I have set these properties in the <resources> section of my jnlp file as follows:
<property name="sun.net.client.defaultConnectTimeout" value="5000"/>
<property name="sun.net.client.defaultReadTimeout" value="5000"/>
I have also verified that these properties are actually set by running the application through JWS and logging their values values to file. Somehow, they do not affect HttpURLConnection at all when the code is run as JWS application.
Can somebody please help?
Thanks,