|
Larry, I'd imagine that each activation group has it's own instance of a JVM...when you reclaim the activation group, all resources to that are freed up by the system...including JVMs... Shane Larry Gorlin <LGorlin@xxxxxxxxxxxxxxxxx> Sent by: java400-l-bounces@xxxxxxxxxxxx 08/03/2005 01:56 PM Please respond to Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> To "java400-l@xxxxxxxxxxxx" <java400-l@xxxxxxxxxxxx> cc Subject JVM and activation groups in OS/400 I seem to have an odd issue going on when accessing Java from RPG programs within a single interactive job. Our company uses two activation groups (we'll call them ActivationGroup1 and ActivationGroup2). All standard ILE RPG programs are compiled under ActivationGroup1 and Service Programs are compiled under ActivationGroup2. We have a main menu program which regularly does a RCLACTGRP for each of these two activation groups. The problem is when accessing Java methods inside an RPG Program. The first time in, there's no issue. The JVM creates itself and all methods run fine. The issue happens after the user returns to the menu and the RCLACTGRP's are run. When the user then returns to one of the procedures that call java methods, the program crashes with a "Attempting to access a destroyed object" message. Occasionally, I've also seen the message "The Java Virtual Machine has ended". After some experimentation, it seems that the RCLACTGRP for the Service Program activation group is the one that causes the problem. If at any time I do a RCLACTGRP ActivationGroup2, all attempts to access Java from within my RPG will fail. I don't see the link between the JVM and the activation group. Any ideas? Thanks, Larry (lgorlin@xxxxxxxxxxxxxxxxx) _________________________________________________________ REMINDER: IP User Conference Sept. 12-14! Click here to register: https://www.Islandpacific.com/2005UserConference/register.asp _________________________________________________________ - ISLAND PACIFIC E-MAIL LEGAL DISCLAIMER - This email is covered by the disclaimer linked below. You are urged to read the disclaimer. <http://www.islandpacific.com/email.htm> _________________________________________________________
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.