<Paul>
We are testing our first Java application</Paul>
<Paul>
The process is called from an RPGLE pgm, Java is initialized in CLLE pgm.
</Paul>

A Java application ist started via QShell or QP2Term and programm java. What you are describing is looking like some Java, RPG, CLLE mix. What are you trying to accomplish, needing a mix of those three languages? That's far away from all best practices and as you noticed yourself, you will get lots of problems, you won't have with any of those languages by itself.

Java on AS/400 (and all compatible systems) is optimized for server java, in other words: the startup of a JVM is rather slow (compared to Wintel and Co.), if it is once up and running speed is ok for older JVMs and good for J9 JVM. Compared to native workload each JVM needs much more ressources than 5250 or RPG/CL Batch and the JNI support of the RPG compiler is rather buggy. But anyway best practice in Java is not to mix up Java with JNI for applications. JNI is designed for the implementation of the JVM and the Java Tools (java, javac, jar ...) not for writing applications.

If you are really needing RPG/Java interaction, an asynchronous approach (RPG talking to a Java Server Job via DataQ or socket connect) would be by far easier and better. Feel free to use my OpenSource appserver4rpg, it's the base layer for ArdGate and CommandGate and extendable.

D*B



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