Step 6: Wire the JoltSessionBean Logoff

  1. Click the Interaction Wizard icon in the Visual Café Form Designer window.
  2. Click in the applet window (not on another bean) and drag a line to the JoltSessionBean.

    The Interaction Wizard is displayed, as shown in the following figure, with the prompt:

    What event in JApplet1 do you want to start the interaction?

  3. Select componentHidden as the event, as shown in the following figure.

    Figure 5-26 Select componentHidden Event

    Select componentHidden Event Diagram
  4. Click Next.

    The Interaction Wizard window is displayed, as shown in the figure

    “Select joltSessionBean1 Object and Logoff from the Tuxedo System Action”, with the prompt: What do you want to happen when JApplet1 fires componentHidden event?

  5. Select joltSessionBean1 as the object, as shown in the following figure.
  6. Select Logoff from the TUXEDO system as the action, also as shown in the following figure.

    Figure 5-27 Select joltSessionBean1 Object and Logoff from the Tuxedo System Action

    Select joltSessionBean1 Object and Logoff from the Tuxedo System Action Diagram
  7. Click Finish.

Completing “Step 6: Wire the JoltSessionBean Logoff” enables the logoff() method of the JoltSessionBean to be triggered by an applet (for example, componentHidden) that is sent when the applet gets hidden.