BEA Logo BEA Tuxedo Release 7.1

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   Tuxedo Doc Home   |   Jolt   |   Topic List   |   Previous   |   Next   |   Contents   |   Index

   Using BEA Jolt

JavaBeans Events and BEA Tuxedo Events

JavaBeans communicate through events. An event in a BEA Tuxedo system is different from an event in a JavaBeans environment. In a BEA Tuxedo application, an event is raised from one part of an application to another part of the same application. JoltBeans events are communicated between beans.

Using BEA Tuxedo Event Subscription and Notification with JoltBeans

BEA Tuxedo supports brokered and unsolicited event notification. Jolt provides a mechanism for Jolt clients to receive BEA Tuxedo events. JoltBeans also include this capability.

Note: BEA Tuxedo event subscription and notification is different from JavaBeans events.

The following procedure illustrates how the BEA Tuxedo asynchronous notification mechanism is used in JoltBeans applications.

  1. Use the setEventName() and setFilter() methods of the JoltUserEventBean to specify the BEA Tuxedo event to which you want to subscribe.

  2. The component that receives the event notifications registers itself as a JoltOutputListener to the JoltSessionBean.

  3. The subscribe() method is called on JoltUserEventBean.

  4. When the actual BEA Tuxedo event notification arrives, JoltSessionBean sends a JoltOutputEvent to its listeners by calling serviceReturned() on them. The JoltOutputEvent object contains the data of the BEA Tuxedo event.

When the client no longer needs to receive the event, it calls unsubscribe() on the JoltUserEventBean.

Note: If the client will only subscribe to unsolicited events, use setEventName ("\\.UNSOLMSG"), which can be set using the property sheet. EventName and Filter are properties of the JoltUserEventBean.