JNI (Java Native Interface) is one of several
solutions Java has for communicating with the outside world. On the
iSeries, ILE service program subprocedures are the endpoints JNI
communicates with. Integrating Java classes and RPG service programs
with JNI can be easy and beneficial. JNI allows you to reuse components
you may have already developed and it can introduce you to the
component-based style of development.
In this discussion, we will cover the RPG keywords and parameters
required for procedures being called from via JNI, we will investigate
using Java from both the QCMD and QSHELL environments on the iSeries, we
will resolve classpath issues and we will introduce the JUnit unit test
component to show how to integrate other Java components into an
Learning Java is a wonderful goal by itself but, by integrating what you
learn with the iSeries' support for Java, you'll also encounter much
about the iSeries that you may not have known before.