ejb timer service vs cron
Posted
by darko petreski
on Stack Overflow
See other posts from Stack Overflow
or by darko petreski
Published on 2010-05-18T09:01:18Z
Indexed on
2010/05/18
9:10 UTC
Read the original article
Hit count: 368
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.
© Stack Overflow or respective owner