Keep the returned instance and call cancel Le 19 sept. 2016 16:17, "tonywestonuk" <to...@totspics.com> a écrit :
> Hi, > > In @PostConstruct, I have a: > > @Resource > ManagedScheduledExecutorService executorService; > .. > executorService.scheduleWithFixedDelay(packetSender, 10, 10, > TimeUnit.SECONDS); > > If the app is undeployed, I want to cancel this schedule. How do I do > this? > > Thanks. > > > > > > -- > View this message in context: http://tomee-openejb.979440. > n4.nabble.com/How-to-stop-a-ManagedScheduledExecutorService-tp4680152.html > Sent from the TomEE Users mailing list archive at Nabble.com. >