wood burning stoves 2.0*
The moose likes Java in General and the fly likes addShutdownHook and killing a asynchronous process Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "addShutdownHook and killing a asynchronous process" Watch "addShutdownHook and killing a asynchronous process" New topic
Author

addShutdownHook and killing a asynchronous process

manish ahuja
Ranch Hand

Joined: Oct 23, 2003
Posts: 312
Hi All,

I wanted to know your thoughts on this. Currently I have a asynchronous web service implementation which internally is long running process.
The users are now requesting a feature if there is a way they can kill this process.

I did go through the docs and found something called addShutDownHook. I was wondering if anyone has used this feature in the past and can provide some info.
As part of the asynchronous run we do provide a id while accepting the request.

Regards,
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37945
    
  22
Shutdown hooks are easy to use. Google. and you find lots, eg this, and these questions. Yes. I know the Oracle link is marked 1.4.2, but it still works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: addShutdownHook and killing a asynchronous process
 
Similar Threads
Star UML sequence diagram
Killing process spawned by Runtime.exec()
Asynchronous Payments
NX: (Contractors) server shutdown and file close
Asynchronous JavaScript and XML as client side Presentation