446,119 views
20 votes
20 votes
What are the advantages of using managedscheduledexecutorservice?

User Sagun Raj Lage
by
2.8k points

1 Answer

29 votes
29 votes

Answer:

ManagedScheduledExecutorService is more of a lightweight scheduling framework, and it does not support features like transaction support, and full lifecycle operations (create, read, cancel timers), which are supported by EJB Timers. In addition, EJB Timers can be persisted and so survive server crash and restart.

Step-by-step explanation:

User Ham
by
2.6k points