Previous Topic: mkjavart.bat Batch FileNext Topic: Preparing the Application JavaBean Proxy


Preparing the Applet/Servlet Java Proxy for Web Access

After you generate a Java Applet/Servlet Proxy, each \deploy\servlet\<component> directory contains a JAR file containing the proxy servlet and the required runtimes. For the Web Server to access the Java Proxy code, you should copy this JAR file into a Web Server directory as follows:

Follow these steps:

  1. Copy the \deploy\servlet\<component>. JAR file into a directory on the Web server.
  2. This directory is the one specified by the servlet tool you have installed. See the tool documentation for this location.

    The CLASSPATH of the product that provides the servlet support must be modified to include the full path and JAR file name of the servlet, for example:

    C:/myservlets/<component>.jar
    

    If you have generated more than one proxy, you must repeat this procedure for each one.

    Note: It is possible to extract the individual classes and directories from the JAR file. This permits only the directory to be included in the CLASSPATH, rather than each servlet JAR file being included individually.

  3. To test the servlet installation, see Deploying a Java Proxy in this chapter.

    Note: The Web Server runs as a service on Windows operating systems, so you must ensure that all environment variables are part of the system environment.

  4. Insert the client bean JAR file in a location that can be used by the custom applet written by the user.

    Note: To test using the sample clientUI applet, see Running the Sample Applet/Servlet JavaBean in this chapter.