[V5.1.1 and later]Developing applet client code

 

Overview

Applet clients have the following setup requirements:

 

Overview

Unlike typical applet clients that reside on either Web servers or WebSphere Application Servers and can only communicate using the HTTP protocol, applet clients are capable of communicating over the HTTP protocol and the RMI-IIOP protocol. This additional capability gives the applet client direct access to enterprise beans.

  1. Run the WebSphere Application Server clients installation.

  2. Select the Applet client option.

  3. Install the Applet client.

  4. Install the WebSphere Application Server plug-in for the browser. The installation creates the following Java Runtime Parameters for the Java Plug-in for the user who installed the Applet client.

    -Djava.security.policy=<product_installation_dir>\properties\client.policy
    -Dwas.install.root=<product_installation_dir>
    -Djava.ext.dirs=<product_installation_dir>\classes;
    <product_installation_dir>\java\jre\lib\ext;
    <product_installation_dir>\java\jre\lib;
    <product_installation_dir>\lib;<product_installation_dir>\properties
    -Dcom.ibm.CORBA.ConfigURL=file:<product_installation_dir>\properties\sas.client.props
    -classpath <product_installation_dir>\properties

    Note: If a user other than the one who installed the applet client runs an applet client sample, then that user must enter these entries.

    • The Java Run-Time Parameters field is similar to the command prompt when using command line options. Therefore, you can enter most options available from the command prompt (for example, -cp, classpath, and others) in this field as well.

    • Start the Java Plug-in control panel.

      [V5.1.1 and later]There are two ways to start the IBM Java Plug-in control panel, and set the Java Virtual Machine (JVM) run-time properties for the Applet client:

      1. Select the icon, Java Plug-in, located in the Windows control panel.

      2. Execute the following command: <install_root>/java/jre/bin/IBMJavaPlugin142.exe to launch the IBM Java Plug-in control panel.

    • The Java Run-Time Parameters field is in the Advance tab of the Java Plug-in control panel.

    • The applet container is the Web browser and the Java plug-in combination. You must first install the WebSphere Application Server Applet client so that the browser recognizes the IBM product Java plug-in.

    View the Samples gallery for more information about application clients. Before you run the basicCalculator Sample, ensure the JMS Server is started.


Related reference
Applet client tag requirements
Applet client code requirements