Category: Kubernetes

by Since Java EE7, the ManagedScheduledExecutorService is a new pattern to implement a scheduler service.

And this was also my first thought when I switched from EJB Timer to ManagedScheduledExecutorService.

But in contrast to the ManagedScheduledExecutorService the non-persistent EJB Timer is transactional during the creation and cancellation which can be important for many scenarios.

So we have seen how ManagedScheduledExecutorService and EJB Timers can be used to implement scheduled tasks in Jakarta EE.

Related Articles