This content has been marked as final.
Show 2 replies
-
1. Re: How to interrupt running tasks of a ManagedExecutorService after undeploy?
emmartins Aug 25, 2014 9:47 AM (in response to markus_s)Keep the task Future object and cancel it on app undeploy. An alternative is to create a custom executor using a management client before app deploy, and remove it after undeploy.
-
2. Re: How to interrupt running tasks of a ManagedExecutorService after undeploy?
markus_s Aug 25, 2014 10:51 AM (in response to emmartins)Thank you! As you suggested keeping the Future and doing housekeeping in a @PostConstruct (javax.annotation.PostConstruct) method works fine.