How to use joltbeans, How joltbeans use javabeans events, Javabeans events and tuxedo events – HP NonStop G-Series User Manual
Page 183

both. Jolt aware beans are a subset of Custom GUI elements that follow beans guidelines.
Jolt aware AWT beans. JoltList, JoltCheckBox, JoltTextField, JoltLabel, and JoltChoice.
JoltBeans toolkit. A JavaBeans compliant interface to Jolt for NonStop TUXEDO, which
includes the JoltServiceBean, JoltSessionBean, and JoltUserEventBean.
wiring. Indicates that a bean is registered as a listener of events from another bean.
How to Use JoltBeans
During development, drag the beans from the JoltBeans component palette of your development
environment to the Java form designer for a Jolt client application or applet. You must populate
the properties of the beans (see
) and set up the event source-listener relationships
between various beans of the application or applet. The development tool typically generates
the event hook-up code. Finally, add the application logic to the event callbacks.
JavaBeans Events and TUXEDO Events
Java Beans communicate via events. The concept of events in a TUXEDO system and events in
a JavaBeans environment differ. In a TUXEDO application, an event is raised from one part of
an application to another part of the same application. JoltBeans events are events that
communicate between beans. See
Using TUXEDO Event Subscription and Notification with
How JoltBeans Use JavaBeans Events
A Jolt client applet or application that has been built using JoltBeans typically consists of Jolt
aware AWT beans, such as JoltTextField or JoltList, and JoltBeans, such as JoltServiceBean
and JoltSessionBean. The main mode of communication between beans is by JavaBeans events.
Jolt aware beans are sources of JoltInputEvents or listeners of JoltOutputEvents or both.
JoltServiceBeans are sources of JoltOutputEvents and listeners of JoltInputEvents.
The Jolt aware AWT beans expose properties and methods so you can link the beans directly to
parameters of a TUXEDO service (represented by a JoltServiceBean). Jolt aware beans notify
the JoltServiceBean via JoltInputEvent when their content changes. The JoltServiceBean sends
a JoltOutputEvent to all registered Jolt aware beans when the reply data is available after the
service call. The Jolt aware AWT beans contain logic that update their contents with the
corresponding output parameter of the service
shows a graphical representation of the possible relationships among the JoltBeans.
Figure 1-1. Possible Interrelationships Among the JoltBeans