aspose file tools
The moose likes Servlets and the fly likes Servlet monitoring while processing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Servlet monitoring while processing" Watch "Servlet monitoring while processing" New topic
Author

Servlet monitoring while processing

gowtham thurangi
Greenhorn

Joined: Apr 05, 2011
Posts: 13

Hi all,

My question is , when am running a servlet using ajax. It returning the response after servlet processing. Is there any way to get the response from the servlet after some progress. Please reply me.


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

No. One request == one response.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
gowtham thurangi
Greenhorn

Joined: Apr 05, 2011
Posts: 13

hi,

So is there any other technology or any way to get the progress of servlet. while its running.
Can we get the how much percent it was executed.
Please...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

How long a period are we talking about? There have been previous discussions on monitoring long-running processes spawned in separate threads.
Sunny Bhandari
Ranch Hand

Joined: Dec 06, 2010
Posts: 446

One work around would be:

Split the processing you are doing right now into multiple servlets and call them in sequence.

Increase the progress bar as soon as one response is received.

Not an exact progress bar but something is better than nothing.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Servlet monitoring while processing
 
Similar Threads
How to configure Filter so that it will only process request but not response
include of RequestDispatcher
stay with same page after submiting form
HTML->Servlet(mutiple request)
Help!