Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.net.URL not opening connection with the same mid tier  RSS feed

 
chandra sekhar mahankali
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

we are trying to connect to an url through the following code.

URL lmsUrl = new URL(_applet.getLMSUrl());
URLConnection conn = lmsUrl.openConnection();

The url we are trying to connect has a load balancing setup(round robin) containing four mid tiers. we are unable to get the response from the same mid tier as the request has gone to with the following java versions.
1.5.0.13 or later but its working for lesser versions in 1.5
Is this a bug with the java version? Or am i doing some thing wrong
pl. suggest.
Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

So the request goes to exactly the same host from where the HTML page containing the applet came from?

What does "unable to get the response" mean? If a request is sent, then there will be a response or an error message. Check the Java Console for errors.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!