|
Date: Wed, 19 Nov 2008 16:15:41 -0600
From: java400-l-bounces@xxxxxxxxxxxx (on behalf of David Gibbs <david@xxxxxxxxxxxx>)
Subject: Re: Using a single JVM
To: Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx>
Karissa Skroch wrote:
After much research, I haven't been able to come up with any clear answers.
I have an RPG program that calls a Java method. This program is used by
many users. Is there a way for just one JVM to be started and all users to
just attach to it, or is it mandatory that a new JVM be started for each
user's job? Is there a way to see how many JVMs are running on the iSeries?
I've found an article that tells me it's possible using the JNI function,
but I can't figure out how. Any help would be much appreciated!
There's no way for all users to attach to a single JVM for interactive use ... but it's not hard to create a java server application that listens on a data queue ... each users application would send requests via the data queue and the single java app would act and send responses by another data queue.
You could use a data queue keyed on the jobname or something similar.
david
--
IBM i on Power - For when you can't afford to be out of business
--
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 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.