Push datd from Servlet to webpage
Ok .. I think this question is dumb but its something I need so asking.
I have a servlet that checks health status of about 20-50 servers
depending on situations.
I am trying to reduce the time to as low as possible but it still takes me
15-20 seconds to respond.
I am printing stuff on console for my satisfaction that the servlet isnt
stuch but a user cant see that.
Is there any way I could print data on the requesting or a new page so
that user knows that server isnt stuck - I dont wanna pass the request as
there is still some processing to do.
I just want to print like I do in console. I checked
System.setOut(PrintStream) but this also caries the data only after I pass
request dispatcher - no good for me.
I am sorry if its a dumb question. I couldn't find anyway for doing what I
need. Any help will be appreciated. Thanks in advance.
No comments:
Post a Comment