aspose file tools*
The moose likes Servlets and the fly likes Servlet monitoring while processing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
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: 61010
    
  65

No. One request == one response.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 61010
    
  65

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: 448

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.


Java Experience
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Servlet monitoring while processing