May 2018
Intermediate to advanced
471 pages
10h 25m
English
If a user doesn’t activate their account, we’ll get an orphaned registration (or account). We have to clean up the database periodically, and what works better for periodically jobs than a timer? This is where scheduled tasks come into play. Because timers can be very sensitive to errors within the same thread, we’ll do this scheduling asynchronously.
Timers are available within Enterprise Java Beans (EJBs). Alumni uses a central class to invoke timed events: the Scheduler class, annotated as @Singleton. Any method that should be invoked by a timer will be ...
Read now
Unlock full access