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



Hi Alex,
I hate to be the bearer of bad news but there is simply no way to do what
you are asking.  There are alot of reasons why you can't.  One thing is
system pointers.  An as400 system pointer is scoped to the job and thus
can't be used across multiple jobs.  We had the same problem with wanting to
have multiple jobs all use the same socket.  In that instance we ended up
having a server jjob with the socket and hte rpg apps all talked to teh
server job with data ueues.

Your best bet is David Gibbs recommedation (tcp server job) which will
perform the best or data queues which are easier to write and automatically
loadbalance but perform anywhere from the same as TCP to adequate depending
on what you want to do.

regard,s
Glen
----- Original Message -----
From: "Alex Garrison" <agarrison@xxxxxxxxxxxx>
To: <java400-l@xxxxxxxxxxxx>
Sent: Wednesday, February 19, 2003 10:59 AM
Subject: need multiple jobs to use same JVM


> Lets say we have a standard interactive green-screen environment in v5r1
> with a small twist: some of the RPG code calls Java using JNI.  My
> understanding so far is that each interactive job would get its own JVM
> (started up the first time each interactive job accesses the RPG code that
> uses JNI.  This poses a big scaleability issue since we cant have 500 JVMs
> floating around.
>
> Is there a way to specify that all the interactive jobs use the same JVM?
>
> If not is there a way to specify which JVM a given interactive job should
> attach to?  For example, I am wondering if
> the RPG JNI function JNI_GetCreatedJavaVMs can return all the JVMs on the
> system or just the one attached to the current job?
>
> How have you gotten around this issue?
>
> _______________________________________________
> 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:
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.