aspose file tools
The moose likes Websphere and the fly likes HTTP Url Connection Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "HTTP Url Connection Error" Watch "HTTP Url Connection Error" New topic
Author

HTTP Url Connection Error

Pankaj Singh
Greenhorn

Joined: May 19, 2003
Posts: 2
I have an application deployed on Websphere which opens up HTTP URL connection to different other app server.
It takes URL list as a parameter , appends some parameter and invokes the connect method.

Something like:
final URL url = new URL(urlStr.toString());
urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.connect();
final int returnCode = urlConnection.getResponseCode();

We have two data center on Production and this works on one . i.e the return code comes back as 200 whereas it fails on other data centers (returns error code as 503,404,406 etc) for the same set of URL's.

Also if i were to take those URL and invoke them directly from teh browser it works all the time.

I'm ruling out this to be a code issue otherwise it shodln't be working on one data center.

I'm wondering is there a Websphere App Server conatiner property which will only permit URL's coming from a known source ?

Any other thoughts as to what should be checked as far as configuration goes ?
 
 
subject: HTTP Url Connection Error
 
Threads others viewed
Sensing Stale connection
Websphere MQ client not closing MQ connection
problems with getting text from field...
How can two servlets deployed in separate web modules share a list of Java beans?
jsse in websphere, ssl to ldap
IntelliJ Java IDE