|
V5R1 and above is required for it to work. Ati "Mark Phippard" <MarkP@softlanding To: java400-l@midrange.com .com> cc: Sent by: Subject: Re: Detecting Job/Subsystem Termination java400-l-admin@mi drange.com 10/18/2002 02:23 PM Please respond to java400-l This is a multipart message in MIME format. -- [ Picked text/plain from multipart/alternative ] That didn't work for me. I tried using setThreadSafeOverride() and I am on V4R5. Is there something else I should do? It seemed like this would have been a setting in my PCML but I do not see it as an option in the JavaDoc. Attila_Halasz@quixtar.com Sent by: java400-l-admin@midrange.com 10/18/2002 01:47 PM Please respond to java400-l To: java400-l@midrange.com cc: Subject: Re: Detecting Job/Subsystem Termination By using native optimization and marking the program call thread safe, the program called by Java will run in the same job as the JVM (QJVACMDSRV). Ati "Mark Phippard" <MarkP@softlanding To: java400-l@midrange.com .com> cc: Sent by: Subject: Detecting Job/Subsystem Termination java400-l-admin@mi drange.com 10/18/2002 01:20 PM Please respond to java400-l This is a multipart message in MIME format. -- [ Picked text/plain from multipart/alternative ] I know this has been asked and answered frequently, but bare with me. I am writing a "daemon-type" process in Java. I want to be able to detect when an operator ends the job or subsystem and close down gracefully. I have followed the suggestions of checking the job end status and generally speaking this does work. The problem is a logistical one. I submit my Java job to a subsystem, this yields two jobs, the job I submitted that does the RUNJVA and the QJVACMDSRV job where the Java is actually executing. The Java is using the ProgramCall class to call a program. This is another job running in QSYSWRK, and this is the job that has to be ending for it all to work. I thought, wrongly, that using the native optimizations would cause the program call to run in the same job, but this is not the case. So given all of the above, how has anyone been able to accomplish this? Thanks Mark _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l. _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l. _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-L-request@midrange.com 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.