×
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.
On 2020-02-24 11:44 a.m., Pete Helgren wrote:
There really isn't any particular reason, it just seems like "native" is
the better way to go, especially if I can 1) Learn something new and 2)
If the effort isn't a whole lot more than using JT400.
I have done a bit of JNI stuff in Windows/Linux and with wasn't too
hairy. Just wondered about IBM i and doing the same.
To use JNI for calling from Java, you'd need a native method on the
native side.
It's pretty easy to write a native method in RPG. You just need to code
your EXTPROC with *JAVA and the class name:
EXTPROC(*JAVA : 'MyClass' : MyMethod)
And you need to create the Java class to tell Java about where the
native method is.
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/rzasc/callnatmeth.htm
There's no support for data structure parameters, so depending on what
you wanted from the API, you might need a lot of parameters.
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.