Configuring the HTTP server for use with AS/400 Toolbox for Java

If you want to use applets or the AS400ToolboxInstaller class, you must set up the HTTP server and install the class files on the AS/400 system. For more information on the HTTP server, see the OS/400 TCP/IP Configuration and Reference . Figure www not displayed.

To configure the HTTP server that comes with the AS/400 system, follow these steps:

  1. Run WRKHTTPCFG from an AS/400 command line to allow the HTTP server on the AS/400 to serve the files.
  2. Add the following entries to the file:
    Enable POST
    Pass /QIBM/ProdData/HTTP/Public/*
    
    The 'pass' directive must match where you put the AS/400 Toolbox for Java class files. This directive is case sensitive with respect to the path that is typed in the browser.
  3. End and restart the HTTP server by entering the following commands on an AS/400 command line:
  4. Ensure that the QTMHHTP1 and QTMHHTTP user profiles are enabled. To do this, enter DSPUSRPRF on an AS/400 command line.

After you configure and start the HTTP server, you can use the AS400ToolboxInstaller class in a Java application to automatically install and update the AS/400 Toolbox for Java class files on the client.

The AS400ToolboxInstaller class copies files to the client's local file system. Many browsers do not allow applets to write to the local file system, so this class may not work in an applet. For more information about the AS400ToolboxInstaller class and how to use it, see the AS/400 Toolbox for Java V4R3 documentation in the AS/400e series Information Center. Look under "Tips for Programming", and then "Install and update." Or if you are viewing this information through the Information Center, see Client installation and update classes .


[ Legal | AS/400 Glossary ]