aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
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: 9315
    
109

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
 
Don't get me started about those stupid light bulbs.
 
subject: Connection timed out when server is present in a far off place
 
Similar Threads
Connection timed out.
Read XML output from a URL
Http Post
Getting a requested URL page back to a Server from the Internet
HttpURLConection and ClassCastException