ejb timer service vs cron
- by darko petreski
Hi
Ejb timer service can start some process in desired time intervals.
Also we can do the same thing with cron (min 1 minute) interval.
But doing it with cron we have more power on controlling, monitoring and changing the intervals.
Also we can restart if needed the cron very easily by command line. Also we can add or remove lines in the cron transparently.
What are the advantages of using ejb timer services over calling the ejbs from cron ?
(several lines of code in the cron classes are not a problem)
Regards.