Eugene Batogov [
http://community.jboss.org/people/JohnBat26] replied to the discussion
"How do set socket read timeout in JBoss Remoting ?"
To view the discussion, visit:
http://community.jboss.org/message/553003#553003
--------------------------------------------------------------
This parameter don't work for me.
And -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=5000
don't work
JDK-1.6.0_21
I have written a test:
---------------------
URL url = new URL("
http://172.20.0.1:8080/XXXX http://172.20.0.1:8080/XXXX");
HttpURLConnection httpCon = (HttpURLConnection) url.openConnection();
httpCon.setReadTimeout(5000);
httpCon.setConnectTimeout(5000);
long date = httpCon.getDate();
System.out.println("Response Message is " +
httpCon.getResponseMessage());
Properties p = System.getProperties();
if (date == 0)
System.out.println("No date information.");
else
System.out.println("Date: " + new Date(date));
}
---------------------
And manual set work ok. But -Dsun.net.client.defaultConnectTimeout=5000
-Dsun.net.client.defaultReadTimeout=5000 don't work (.
I want instal timeouts globally. How ?
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/553003#553003]
Start a new discussion in JBoss Remoting at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]