Native optimizations when running on the iSeries JVM

Native optimizations are a set of functions that make the IBM® Toolbox for Java™ classes work the way a user would expect them to work when running on i5/OS™. The optimizations affect operation of IBM Toolbox for Java only when running on the iSeries™ JVM.

It is very important to understand that your Java programs use native optimizations only when you use the version of IBM Toolbox for Java that matches the version of i5/OS on your server. The optimizations are:

Note: For best performance, set your JDBC driver property to use the native driver when the Java program and database file are on the same iSeries server.

No change to the Java application is needed to get the optimizations. IBM Toolbox for Java automatically enables the optimizations when appropriate.

Native optimization compatibility requirements

The following table shows which versions of IBM Toolbox for Java LPP and i5/OS you must run to use native optimizations. This table documents only compatibility issues that affect native optimizations. For general compatibility issues, see Compatibility with different levels of i5/OS.

Level of i5/OS IBM Toolbox for Java LPP required to use native optimizations
V5R2 5722-JC1 V5R2M0
V5R3 5722-JC1 V5R3M0
Start of changeV5R4End of change Start of change5722-JC1 V5R4M0End of change

In order to gain the performance improvements, you need to make sure to use the jar file that includes i5/OS native optimizations. For more information, see Note 1 in Jar files.

When the versions of IBM Toolbox for Java and i5/OS do not match, native optimizations are not available. In this case, IBM Toolbox for Java works as if it is running on a client.