Re: Shutdown issues with ManagedScheduledExecutorService

2018-10-29 Thread Romain Manni-Bucau
Did you try a semaphore waiting all tasks are done? It likely also needs a boolean to prevent new submissions before starting waiting for completion. Side note: @Schedule sounds not bad for your use case ;) Le lun. 29 oct. 2018 20:55, ChrisOwens a écrit : > This is with TomEE plus 7.0.5 > >

Shutdown issues with ManagedScheduledExecutorService

2018-10-29 Thread ChrisOwens
This is with TomEE plus 7.0.5 I'm getting /Bean ... has been undeployed/ exception on shutdown, which is preventing orderly cleanup. The issue appears to be that a POJO implementing Runnable is scheduled for periodic execution; that POJO was created with a reference to a @Stateless bean; and the

Shutdown issues with ManagedScheduledExecutorService

2018-10-29 Thread ChrisOwens
This is with TomEE plus 7.0.5 I'm getting /Bean ... has been undeployed/ exception on shutdown, which is preventing orderly cleanup. The issue appears to be that a POJO implementing Runnable is scheduled for periodic execution; that POJO was created with a reference to a @Stateless bean; and the

Shutdown issues with ManagedScheduledExecutorService

2018-10-29 Thread ChrisOwens
This is with TomEE plus 7.0.5 I'm getting /Bean ... has been undeployed/ exception on shutdown, which is preventing orderly cleanup. The issue appears to be that a POJO implementing Runnable is scheduled for periodic execution; that POJO was created with a reference to a @Stateless bean; and the