-
1. Re: How do set socket read timeout in JBoss Remoting ?
johnbat26 Jul 16, 2010 5:09 AM (in response to johnbat26)Network properties:
-Dsun.net.client.defaultConnectTimeout=15000 -Dsun.net.client.defaultReadTimeout=15000
don't work with JBoss Remoting. Client don't break connection by timeout after 15 second reading from socket?!?
-
2. Re: How do set socket read timeout in JBoss Remoting ?
gaohoward Jul 16, 2010 6:09 AM (in response to johnbat26)There is a remoting parameter "timeout", it's equivalent to Socket.setSoTimeout().
-
3. Re: How do set socket read timeout in JBoss Remoting ?
johnbat26 Jul 16, 2010 6:15 AM (in response to gaohoward)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");
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 ?
-
4. Re: How do set socket read timeout in JBoss Remoting ?
johnbat26 Jul 16, 2010 8:02 AM (in response to gaohoward)I read about timeout parameter in Jboss remoting.
Where can I set this parameter ? file ? url ? -D ?
-
5. Re: How do set socket read timeout in JBoss Remoting ?
ron_sigal Aug 11, 2010 12:53 PM (in response to johnbat26)Hi Eugene,
I don't know much about JBoss Web Services. I would suggest that you post your question on the JBoss Web Services user forum (https://community.jboss.org/en/jbosswebservices).
-Ron