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

calling Java from RPG via JNI will startup a JVM in every Job using this and starting maybe hundreds of JVMs won't scale well and only IBM will be happy to sell lots of hardware. Every RuntimeException coming up from Java could not be handled in RPG and will freeze the JVM for all following JNI calls from RPG. The JVM will be started implicit by the RPG runtime when the first JNI call occurs and all following calls within this job have to use this JVM and the associated settings. Using JNI calls in both directions adds addtitional complexity, because RPGs Multi threading capabilities are very limited.

As a conclusion of this all, I would strongly recommend not to use JNI calls from RPG.

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