Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java Web Start is ignoring network timeout system properties

843802Apr 24 2006 — edited May 10 2006
Hi,

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,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 7 2006
Added on Apr 24 2006
4 comments
509 views