Re: How to stop a ManagedScheduledExecutorService

2016-09-19 Thread tonywestonuk
:-D Thanks!!. Again! -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/How-to-stop-a-ManagedScheduledExecutorService-tp4680152p4680156.html Sent from the TomEE Users mailing list archive at Nabble.com.

Re: How to stop a ManagedScheduledExecutorService

2016-09-19 Thread Romain Manni-Bucau
Keep the returned instance and call cancel Le 19 sept. 2016 16:17, "tonywestonuk" a écrit : > Hi, > > In @PostConstruct, I have a: > > @Resource > ManagedScheduledExecutorService executorService; > .. > executorService.scheduleWithFixedDelay(packetSender, 10, 10, > TimeUnit.SECONDS); > > If the