Two Laptop Bag
The moose likes Applets and the fly likes Connection timed out when server is present in a far off place Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Connection timed out when server is present in a far off place" Watch "Connection timed out when server is present in a far off place" New topic
Author

Connection timed out when server is present in a far off place

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8143
    
  52

We have a web application on JBoss-3.2.3. It makes use of Applets. To paint the applet, a request is sent to a server using a HttpURLConnection. Evertyhing works fine when the browser(client) and the server are on the same network. However, if the client(browser) is in Australia and the server in India(i.e. long distance between server and client), then the Applet crashes with a Connection timed out exception. Any solution for this?
The code looks something like:



[My Blog] [JavaRanch Journal]
Dave Robbins
Ranch Hand

Joined: Sep 16, 2003
Posts: 131
checkout setReadTimeout
it's in the parent class URLConnection

Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection timed out when server is present in a far off place
 
Similar Threads
Connection timed out.
Read XML output from a URL
Getting a requested URL page back to a Server from the Internet
HttpURLConection and ClassCastException
Http Post