users@glassfish.java.net

Re: SAAJ - set connection time out

From: <glassfish_at_javadesktop.org>
Date: Wed, 29 Aug 2007 02:15:53 PDT

SAAJ uses URL.openConnection() eventually.

Can you try the following (JVM options)

-Dsun.net.client.defaultConnectTimeout=<value in milliseconds>
-Dsun.net.client.defaultReadTimeout=<value in milliseconds>

suggested in this thread : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4143518

from JDK 5 onwards there is

setConnectTimeout(..) API on URLConnection but SAAJ does not make use of this feature currently as there is no standard way in the SAAJ spec to obtain these properties.

If you think appropriate, please file an RFE(P4 bug) on SAAJ at https://saaj.dev.java.net and then we will evaluate. In the meantime if the above properties work for you then i guess you are fine right ?.

Thanks
[Message sent by forum member 'kumarjayanti' (kumarjayanti)]

http://forums.java.net/jive/thread.jspa?messageID=233032