|
>From WRKJOBSCDE you can submit a QSH command to batch. Included is an example which includes setting my classpath and passing parms to a main method. QSH CMD('java -cp /java/poi2.0.jar:/java/jt400.jar:/java/ MyReport_main W 2004-06-27 2004-07-03') HTH, Aaron Bartell -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] Sent: Tuesday, July 13, 2004 10:56 AM To: java400-l@xxxxxxxxxxxx Subject: Scheduling a Java PGM to run... I need to call a Java PGM on the first of every month. I am a Java Web developer, but have written this as a Java application, as opposed to a servlet. I have been running it from WDSC-i but need to move it to the iSeries and have it run unattended on a scheduled basis. What is the best way to do this? I have not had much success in running a Java app on the iSeries using the RUNJVA command, my biggest issue being setting the CLASSPATH. But if using the RUNJVA command in a CL and putting it in the job scheduler is the best practice, I will work through it. Since my expertise lies in servlet programming, I would prefer to make this a web application. What is the best way to fire a servlet at a specified time? Thanks Mike Burdette Comporium Data Services Web Development Rock Hill, SC 29731 -- 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.
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.