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



Are you signing off and back on again with each Java/RPG compile?  I always
make sure to do that just so I know nothing is hanging on to my job
(objects, references, etc).

Aaron Bartell

-----Original Message-----
From: Wills, Mike N. (TC) [mailto:MNWills@xxxxxxxxxxxxxx]
Sent: Friday, December 12, 2003 4:12 PM
To: Java Programming on and around the iSeries / AS400
Subject: RE: Can the JVM be restarted?


Sooooo, if the job ends, the JVM ends. Okay... Well, I don't know what was
going on, but all the sudden it worked after running the DMPJVM command I
found.


Mike Wills
Lawson Programmer/Administrator
Taylor Development
Email: mnwills@xxxxxxxxxxxxxx
Direct Line: (507) 386-3187

-----Original Message-----
From: Barbara Morris [mailto:bmorris@xxxxxxxxxx] 
Sent: Friday, December 12, 2003 2:54 PM
To: java400-l@xxxxxxxxxxxx
Subject: Re: Can the JVM be restarted?

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.

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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.