Is this efficient to do?

Define "efficient." From a machine performance point of view, sure. The
sleeping 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? The
job could be either a "simple" RPG program or a java application. Why
make 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 the
sleeping thread? What restarts it on application start?


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by 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.