Wiring the JoltBeans Together
After all the beans are positioned on your form and the properties are set, you must wire the beans and their events together. The following figure illustrates an example of the flow to help you determine the correct order in which to wire the beans.
Wiring the beans allows you to establish event source-listener relationships between various beans on the form. For example, the JoltServiceBean is a listener of ActionEvents from the button and invokes callService()
when the event is received. Use the Visual Café Interaction Wizard to wire the beans together.
The following figure shows the sequence in which you will wire the beans together to create this sample applet. The numbers in this figure correspond to the numbered steps that follow.
Figure 5-10 Sequence in Which JoltBeans Are Wired

The steps below correspond to the callouts shown in the figure “Sequence in Which JoltBeans Are Wired”. Each of the steps below is detailed in the sections that follow.
- Step 1: Wire the JoltSessionBean Logon
- Step 2: Wire JoltSessionBean to JoltServiceBean Using PropertyChange
- Step 3: Wire the accountID JoltTextField as Input to the JoltServiceBean Using JoltInputEvent
- Step 4: Wire Button to JoltServiceBean Using JoltAction
- Step 5: Wire JoltServiceBean to the Balance JoltTextField Using JoltOutputEvent
- Step 6: Wire the JoltSessionBean Logoff
- Step 7: Compile the Applet
- Running the Sample Application
Parent topic: JoltBeans Class Library Walkthrough