Tips for programming

This section features pointers for programming with the AS/400 Toolbox for Java. Select the links below to view the tips.

  1. Find out how to properly shut down your Java program.
  2. Use integrated file system path names in your programs. This section covers integrated file system path names, parameters, and special values.
  3. Follow these tips on managing connections to an AS/400. See how to use the AS400 class to start and end socket connections.

    NOTE: If your application is an Enterprise JavaBean, consider turning off IBM Toolbox for Java thread support. Your application will be slower but will be compliant with the Enterprise JavaBean specification.

  4. Read about running IBM Toolbox for Java classes on the Java virtual machine for AS/400. This section covers how to best access AS/400 resources, how to run the classes, and what sign-on factors to consider.
  5. When programming with the IBM Toolbox for Java access classes, use the exception classes to handle errors.
  6. When programming with the graphical user interface (GUI) classes, use the error events classes to handle errors.
  7. See how to use the Trace class in your programs.
  8. Find out how to optimize your program for better performance.
  9. Read about the performance improvements you can get when using the Java virtual machine for AS/400.
  10. Use the install and update section for information about the AS400ToolboxInstaller class and managing IBM Toolbox for Java classes on a client.
  11. Read about IBM Toolbox for Java and Java national language support.
  12. See these resources for IBM Toolbox for Java Service and support.
  13. Use the JarMaker class and create faster loading IBM Toolbox for Java JAR files.