Step 4: Wire Button to JoltServiceBean Using JoltAction

  1. Click the Interaction Wizard icon in the Visual Café Form Designer window.
  2. Click the Inquiry Button and drag a line to the JoltServiceBean.

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

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

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

    Figure 5-21 Select action Performed Event

    Select action Performed Event Diagram
  4. Click Next.

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

    What do you want to happen when button1 fires actionPerformed event?

  5. Select inquiry as the object, as shown in the following figure.
  6. Select Invoke the TUXEDO Service represented by this Bean as the action, also as shown in the following figure.

    Figure 5-22 Select inquiry Object and Invoke the TUXEDO Service... Action

    Select inquiry Object and Invoke the TUXEDO Service... Action Diagram
  7. Click Finish.

Completing “Step 4: Wire Button to JoltServiceBean Using JoltAction” enables the callService() method of the JoltServiceBean to be triggered by an ActionEvent from the Inquiry button.