[jboss-user] [JBoss Remoting] - How do set socket read timeout in JBoss Remoting ?

Eugene Batogov do-not-reply at jboss.com
Fri Jul 16 06:15:50 EDT 2010

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

I have written a test:
URL url = new URL("");
       HttpURLConnection httpCon = (HttpURLConnection) url.openConnection();
       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.");
         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

Start a new discussion in JBoss Remoting at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100716/0fb02f3d/attachment.html 

More information about the jboss-user mailing list