Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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.net.ConnectException: Operation timed out: connect

843830Oct 14 2005 — edited Oct 26 2005
code:
URL url = new URL((URL)null,<a servlet url here>,new HttpTimeoutHandler(this.timeout));
URLConnection con = url.openConnection();
con.setUseCaches(false);
sendHeaders(con);
======================================
when session is alive, the code is ok. but when session timeout, these code will cause exception:
java.net.ConnectException: Operation timed out: connect


Please help me! Thank you!

Comments

843830 Oct 26 2005
U can do some settings at websphere console .
Go to the following settings

Application Servers > server1 > Web Container > HTTP Transport > ur port no >

and create these two things

ConnectionIOTimeOut 60
ConnectionKeepAliveTimeout 60
1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 23 2005
Added on Oct 14 2005
1 comment
302 views