I haven't done a whole lot of J2EE programming lately, but what is the "best practice" for running some business logic on a period basis? Something that would typically be run by a cron job.
I need to run a big chunk of code to kick info out to the accounting system at the end of each day. Any suggestions for how and where to handle this?
Thank you.
-
Daily Utility Tasks (3 messages)
- Posted by: Rob Marreel
- Posted on: August 30 2005 17:22 EDT
Threaded Messages (3)
- java cron package by Thomas Han on August 30 2005 18:29 EDT
- Daily Utility Tasks by Ashish Jamthe on August 30 2005 23:58 EDT
- Daily Utility Tasks by NOEL BRANZUELA on August 31 2005 02:02 EDT
-
java cron package[ Go to top ]
- Posted by: Thomas Han
- Posted on: August 30 2005 18:29 EDT
- in response to Rob Marreel
Hi Rob,
From my exp, there are many cron-like packages for Java that you could try to use. I've used one before and it very simple to use if you are familar with the crontab entry syntax
I did a quick google and found this
http://jcrontab.sourceforge.net/index.shtml
HTH,
Thomas -
Daily Utility Tasks[ Go to top ]
- Posted by: Ashish Jamthe
- Posted on: August 30 2005 23:58 EDT
- in response to Rob Marreel
-
Daily Utility Tasks[ Go to top ]
- Posted by: NOEL BRANZUELA
- Posted on: August 31 2005 02:02 EDT
- in response to Rob Marreel
Since you are talking about J2EE, I would suggest you use Timer Service:
http://www.onjava.com/pub/a/onjava/2004/10/13/j2ee-timers.html