• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

addShutdownHook and killing a asynchronous process

 
manish ahuja
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 48934
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic