|
Hi Ron,All of the comments I made hold for non-iSeries (sorry, System i) platforms as well. A couple of folks on this list have suggested that you plan now for a more maintainable batch job scheduling approach rather than placing this functionality directly into your web app. That is fine as far as it goes, and I would add the Quartz job scheduler to the list of things to consider if you're looking for something Java-centric and flexible <http://www.opensymphony.com/ quartz/>. Quartz can be embedded within a servlet container, or it can run as a standalone app (which you could easily launch as a Windows service using JSL or a similar tool). There is also a list of java-based job schedulers at <http://java-source.net/open-source/ job-schedulers>, but I don't have experience with any of those so I can't really offer any comparisons.
And if this is a one-time requirement (if any such thing exists...) then the approach you're described already should be okay too.
t. On 22-Jun-06, at 7:29 AM, RPower@xxxxxxxxxx wrote:
Ooops, I forgot that this is for Java on the iSeries. This particular application isn't running on the iSeries. In fact, due to certainchanges, we won't have an iSeries in about 3 years... being phased out for Windows Servers. Sorry for the mixup. Does the same apply for that then?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/______________________________________________________________________ _____ Success is going from failure to failure without a loss of enthusiasm. -Sir Winston Churchill "Walden H. Leverich" <WaldenL@xxxxxxxxxxxxxxx> Sent by: java400-l-bounces@xxxxxxxxxxxx 2006/06/21 04:27 PM Please respond to Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> To "Java Programming on and around the iSeries / AS400" <java400-l@xxxxxxxxxxxx> cc Subject RE: Thread questionIs this efficient to do?Define "efficient." From a machine performance point of view, sure. Thesleeping thread won't take any machine resources so it's "efficient." However, it's probably not how I'd do it.Don't forget you're still on an iSeries. Why not simply add something to the job scheduler to run a job once a day to look for expiry dates? Thejob could be either a "simple" RPG program or a java application. Whymake it a web application? If you need it to be a "Web" application I'd still use the job scheduler and just use something like Brad's GetURI to kick off the web page needed to invoke the process. What's starting thesleeping thread? What restarts it on application start? -Walden -- Walden H Leverich III Tech Software (516) 627-3800 x3051 WaldenL@xxxxxxxxxxxxxxx http://www.TechSoftInc.com Quiquid latine dictum sit altum viditur. (Whatever is said in Latin seems profound.) --This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.This email communication and accompanying documents is intended only for the individual or entity to which it is addressed and may contain information that is confidential, privileged or exempt from disclosure under applicable law. Any use of this information by individuals or entities other than the intended recipient is strictly prohibited. If you have received this in error, please notify the sender and delete all the copies (electronic or otherwise) immediately.--This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing listTo post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
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.