× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Mike Silvers wrote:
> 
> As far as the JVM, it can not be "restarted".  When an RPG program
> interfaces with a Java program, an instance of the JVM is used.  This
> process, as well as the same instance, is used until either the RPG program
> exits or the programmer uses an API to end the instance.  Once the instance
> is ended within a single RPG program, it can not be started and/or opened
> again.  The "weird errors" would be hard to troubleshoot without more
> information...
> 

The JVM doesn't end with the RPG program.  On V5R1, where you can end
the JVM with the destroyJVM API, you could end the JVM in an RPG
program, and then start another one in the same program.  Or you could
end your first program (LR or not, makes no difference), and call
another program to use the same JVM.

One exception: on V5R1, ending an activation group ends the JVM, so if
your program is a *NEW AG program, the JVM does end when the program
ends.

On V5R2, ending an AG doesn't end the JVM; you have one JVM for the
lifetime of your job.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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.