× 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.



> From: Andrew Papada
>
> Just curious, you state that it only creates a JVM on the first call.
> Is this assuming that the RPG program will not be shut down after the
> call?  I believe that they are going to write a separate RPG program
> that would be called from the OMS each time it decides it is necessary
> to retrieve the desired info from the service.  In that scenario,
would
> only one JVM still be invoked?  I guess I'm thinking that each call to
> the RPG program would instantiate a new object from the prototyped
> class?  If it wouldn't invoke a new JVM in this case, I may be able to
> go back to them with this as a viable solution.

While there has been some revamping of the actual implementation from
release to release, the basic idea is that each job gets its own JVM,
and it can have only one.  You can manually start it with an API, or you
can let the RPG/Java interface start it for you.  In either case, once
the JVM is started, that is the JVM that will be used throughout the
job.

IIRC, that same JVM is even shared across activation groups.

A couple of caveats: if you manage to shut down the JVM, you cannot
start a new one.  The JVM is toast and the job cannot have another.  I'm
not sure why that is, but that's currently how it works (at least
V5R2+).  Also, if you create objects in your RPG calls (for example, you
invoke constructors to create new instances of objects), then it is your
responsibility to garbage collect them.  I'm pretty sure there are
examples of that in the archives.

Joe


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.