Applet client tags


  1. To communicate with EJBs in the WAS server environment, replace <applet> tags with:

    <object> <embed>

  2. Do not use the codebase attribute for the <object> tag must be excluded.

  3. The following code example illustrates the applet code. In this example, MyApplet.class is the applet code, applet.jar is the file that contains the applet code, and EJB.jar is the file that contains the enterprise bean code

    <object classid="clsid:8AE2D840-EC04-11D4-AC77-006094334AA9"
    width="600" height="500">
    <PARAM NAME=CODE VALUE=MyAppletClass.class>
    <PARAM NAME="archive" VALUE='Applet.jar, EJB.jar'>
    <PARAM TYPE="application/x-java-applet;version=1.3">
    <PARAM NAME="scriptable" VALUE="false">
    <PARAM NAME="cache-option" VALUE="Plugin">
    <PARAM NAME="cache-archive" VALUE="Applet.jar, EJB.jar">
    <embed type="application/x-websphere-client" CODE=MyAppletClass.class
    ARCHIVE="Applet.jar, EJB.jar" WIDTH="600" HEIGHT="500"
    </NOembed>WebSphere Java Application/Applet Thin Client for
    Windows is required.

  4. The value of the type attribute on the </embed> tag can also be, for example

    <embed type="application/x-websphere-client, version=4.0" ...