File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 12786
    
    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