IBM Support

Performance Hints when using Toolbox for Java

General Page

This page describes some suggested improvements to code and processes that could make your IBM Toolbox for Java application perform faster, better, and safer. These are just suggestions and may not work in every possible scenario. No guarantee is stated or implied.

General

  • JarMaker. The Toolbox ships with a utility called JarMaker which allows a user to essentially carve up the jt400.jar file into a smaller file containing only the components that are needed by their application. Having a smaller JAR file then allows it to be downloaded more quickly if running in an applet.

Record Level Access

JDBC

Severlet

  • Disconnect AS400 services.

If you are using instances of class AS400 , don't just let them sit around. Disconnect the services if you are not using the object, by calling either AS400.disconnectService() or AS400.disconnectAllServices() . One of our developers noticed that his servlet had a bunch of threads (AS400 Read Daemons) laying around waiting for input because he never disconnected the AS400 object he was using.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
05 March 2020

UID

ibm11117911