Hi all,I have an agent that returns XML data. I write a simple servlet to get this data, code like this:
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
response.setContentType(CONTENT_TYPE);
try
{
URL o = new URL("http://myserver/myDB.nsf/myagent?openagent");
BufferedReader inStream = new BufferedReader(new InputStreamReader(o.openStream()));
PrintWriter out = response.getWriter();
String line;
while ((line = inStream.readLine()) != null)
out.println(line);
out.close();
}
catch (Exception e) {
}
When I run test this servlet on my local computer, it works. But when I upload it to servlet direcotry, it doesn’t. It take long time to get response (I guest there is no response). When I shutdown Domino server, an message show “Waiting for finish session …” and the URL of myagent. I don’t know why. Could anyone give me a clue.
Thanks in advance,
Trung