|
Barbara, I asked a question (no response) recently about where the JVM runs when a CL pgm runs the JAVA command. One observation was that it always ran in a QJVACMDSRV that started up in the same subsytem that launched the JAVA cmd. Is this true and will all other JAVA cmds in the same job/subsystem always use that same QJVACMDSRV? Does the JVM used by the JAVA cmd have any relationship that used by RPG? Peter -----Original Message----- From: Barbara Morris [mailto:bmorris@xxxxxxxxxx] Sent: Thursday, September 11, 2003 12:08 PM To: java400-l@xxxxxxxxxxxx Subject: Re: One JVM for batch job Joe Pluta wrote: > ... > Another way is to use RPG to directly call the Java class. If the RPG > program doesn't end, I believe it will use the same JVM over and over, > but I haven't played with that architecture much. > The lifetime of the JVM doesn't have anything to do with RPG. RPG will start a JVM, but it will never end it. In V5R2, the JVM should ideally only end when the job ends. In V5R1, the JVM gets ended if any activation group is ended, and it can also be explicitly ended. The activation group thing doesn't happen in V5R2, and also in V5R2 you can't explicitly end the JVM. Once the JVM is started in a job, any RPG program will use that JVM. _______________________________________________ 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 correspondence is for the named person's use only. It may contain confidential or legally privileged information, or both. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this correspondence in error, please immediately delete it from your system and notify the sender. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any views expressed in this message are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Baycorp Advantage.If you need assistance, please contact Baycorp Advantage on either :- Australia 133124 or New Zealand +64 9 356 5800
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.