This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes calling a url from a servlet in Websphere 3.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "calling a url from a servlet in Websphere 3.2" Watch "calling a url from a servlet in Websphere 3.2" New topic
Author

calling a url from a servlet in Websphere 3.2

Prasanth Varma
Greenhorn

Joined: Feb 04, 2003
Posts: 3
I am calling an external url from a servlet, which is running on Websphere, using the URL class. The call is taking much more time than it takes from the browser. Does anybody have any idea as to how to improve the performance??
Thanks in advance.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
You might start by timing the various parts of the process using System.currentTimeMillis(). How are you treating the InputStream from the connection? If you have to read more than a few bytes, some sort of buffered input is in order.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling a url from a servlet in Websphere 3.2
 
Similar Threads
Retrieving blob object
Mapping servlets in WAS 3.5 Std Edition as we do it in web.xml in Weblogic server
calling a url from a servlet in Websphere 3.2
Calling an EJB from a servlet
Top Tip - WebSphere Error Trapping Servlet.