Native optimizations when running on the IBM i 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 IBM i. The optimizations affect operation of IBM Toolbox for Java only when running on the IBM i JVM.

The IBM Toolbox for Java optimizations when running on IBM i are:

  • Signon: When no userid or password is specified in the AS400 object, the userid and password of the current job are used
  • Directly calling IBM i APIs instead of making socket calls to host servers:
    • Record-level database access, data queues and user space when security requirements are met.
    • Program call and command call when security requirements and thread safety requirements are met.
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 server.

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

In order to gain the performance improvements, you need to make sure to use the JAR file that includes IBM i native optimizations. For more information, see Note 1 in JAR files.

When you do not use the JAR file that includes IBM i native optimizations, IBM Toolbox for Java works as if it is running on a client.