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 OS/400. 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 OS/400 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 system.
No change to the Java application is needed to get the optimizations. IBM Toolbox for Java automatically enables the optimizations when appropriate.
The following table shows which versions of IBM Toolbox for Java and OS/400 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 OS/400.
Level of OS/400 | Toolbox modification required to use native optimizations | ||||
---|---|---|---|---|---|
V4R2 | No Mod0 enhancements available. | ||||
V4R3 | |||||
V4R4 | |||||
V4R5 | |||||
V5R1 | |||||
![]() |
![]() |
In order to gain the performance improvements, you need to make sure to use the jar file that includes OS/400 native optimizations. For more information, see Note 1 in Jar files.
When the versions of IBM Toolbox for Java and OS/400 do not match, native optimizations are not available. In this case, IBM Toolbox for Java works as if it is running on a client.