This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes setConnectTimeout() Doesn't Work in Sun Java System App Server 8.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "setConnectTimeout() Doesn Watch "setConnectTimeout() Doesn New topic
Author

setConnectTimeout() Doesn't Work in Sun Java System App Server 8.2

Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Hi all,

I have a code that sends a request through HTTP using HttpURLConnection. Roughly, the code is as follows.


I tested it in a normal Java console program and it was working fine. I tested it again inside a servlet using Tomcat and it was also fine. But when I tested in a servlet using Sun Java System Application Server, it didn't work. I reckon there must be some configuration that I need to set in Sun Java Application Server, but I just don't know where. I've been googling it for few days with no answer Do you guys have any idea about this?

Thanks in advance.
[ July 04, 2007: Message edited by: Freddy Wong ]

SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setConnectTimeout() Doesn't Work in Sun Java System App Server 8.2
 
Similar Threads
JAXB serialized via apache PostMethod to @Consumes("application/x-java-serialized-object")
HTTP Response : 503
jsp:useBean
SSO connection issue
Connection timed out when server is present in a far off place