|
Hi Ron, I don't understand why you want a web app to do the task since it appears to be an unassisted ( batch ) operation from your description. Also, generally, you should not use threads in container-managed apps. Messaging normally provides the best solution. But here, I would think of a scheduled job on the AS/400, and there are schedulers for other systems as well. Using those, there is only one app responsible for starting up repetitive jobs. These jobs can then run and terminate after processing. HTH, Joe Sam Joe Sam Shirah - http://www.conceptgo.com conceptGO - Consulting/Development/Outsourcing Java Filter Forum: http://www.ibm.com/developerworks/java/ Just the JDBC FAQs: http://www.jguru.com/faq/JDBC Going International? http://www.jguru.com/faq/I18N Que Java400? http://www.jguru.com/faq/Java400 ----- Original Message ----- From: <RPower@xxxxxxxxxx> To: "Java Programming on and around the iSeries / AS400" <java400-l@xxxxxxxxxxxx> Sent: Wednesday, June 21, 2006 2:34 PM Subject: Thread question
I have a need for a web application that I'm writing to do a daily check for expiry dates, and if any meet criteria, to email people notifying them of the expiration coming up. I'm currently creating a thread, then making it sleep for 24 hours and run again. Is this efficient to do? Should I be wary of anything by doing this? Or is there a better way to do it? Ron Power Programmer Information Services City Of St. John's, NL P.O. Box 908 St. John's, NL A1C 5M2 709-576-8132 rpower@xxxxxxxxxx http://www.stjohns.ca/
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.