|
|
Hi Guys,
I have created a java application and its running as a cron task on our linux server. Is there a better way of doing this?
Regards
Richard
Why change it? Whats wrong with the solution you hava chosen?
Hi mdeinum,
Nothings wrong with it im just wondering if theres a better way as I am nearing another deployment on a different machine.
ThanksOriginally Posted by mdeinumWhy change it? Whats wrong with the solution you hava chosen?
well depends on what the function of your application is. If it is designed to run in the background and needs to be scheduled on structured times, I would also use a cron job. If it runs continuesly I would put in the startup scripts (rc.[something]).
If I have part of my programm which needs to be scheduled at certain times, I would use some sort of timers from my application (Quartz for instance).
But whatever you decide you need something to start the whole thing up, either manually or automatic (cron, startup sequence).
Thanks Martin.Originally Posted by mdeinumwell depends on what the function of your application is. If it is designed to run in the background and needs to be scheduled on structured times, I would also use a cron job. If it runs continuesly I would put in the startup scripts (rc.[something]).
If I have part of my programm which needs to be scheduled at certain times, I would use some sort of timers from my application (Quartz for instance).
But whatever you decide you need something to start the whole thing up, either manually or automatic (cron, startup sequence). |
|