Ashish Kulkarni wrote:
> Hi,
> i have to call java programs from RPGLE, I am able to
> do that but need some information for designing this
> project
> 1. I was reading some manual and came accross creating
> JVM envoirnment and then destroying it when calling
> java program from RPG, DO i have to do it??
> what does it mean by this
> 2. When i call Java program does a seperate instance
> of class is created for each RPG program.
> 3. What is the best practise for doing this kind of
> project

Ashish, you don't have to create the JVM.  The RPG runtime will create
the JVM for you.  You definitely should not destroy the JVM.  You should
write your application assuming the JVM will already be created, so you
should make sure the CLASSPATH environment variable is correct before
any RPG program has a chance to call Java in your job.

There is only one JVM in your job.  All your programs use the same JVM,
and when your RPG program ends with LR on or not, it doesn't affect the

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.