WebSphere brand IBM WebSphere Premises Server, Version 6.1.x

WebSphere Premises Server event model

In earlier releases of WebSphere® Premises Server, data flowed through the product using a proprietary XML message format. This proprietary format was used exclusively for RFID solutions, and extending it to any sensor event type would have been difficult, if not impossible.

WebSphere Premises Server 6.1 introduces the concept of generic events. This means that there is event processing that applies to RFID solutions, as well as any sensor events, such as, temperature change. Generic events are extendable and can be customized to fit any customer requirements.

WebSphere Premises Server still uses XML data, but instead of a proprietary XML format, the product uses Common Base Event XML. The Common Base Event format is used by various IBM® products to communicate system management status. Any product that understands the Common Base Event XML format can use Common Base Event XML created by another product.

Within the WebSphere Premises Server Java™ libraries, there are classes that convert an XML string to Common Base Event objects and convert Common Base Event objects to an XML string; however, using the available Common Base Event libraries would tie WebSphere Premises Server to a specific Common Base Event version. Updating to a newer Common Base Event version would be almost as difficult as continuing to use a proprietary XML message format.

To insulate WebSphere Premises Server from any changes to the Common Base Event format, the event data model was created. Upon entering WebSphere Premises Server, a Common Base Event XML message is converted to Java objects of the event data model. These Java objects are then passed around within WebSphere Premises Server. When WebSphere Premises Server needs to communicate with external services, the Java objects are converted back to an XML string in the Common Base Event XML format. Therefore, if the Common Base Event format ever changes, the WebSphere Premises Server does not change, only the conversion code changes.

The following concepts are used in the event model:

The implementation of the generic event model is made up of two main components:

Most classes follow the Java factory pattern. Each object instance is created not from a constructor but by calling a static getInstance method. The type returned from getInstance is not a class type but an interface type. When coding in the event model, code to the interface type and not the class type.

For more information on the event model, see the Example event format in the toolkit help and Managing event processing in the WebSphere Premises Server Information Center.


Library | Support | Terms of use

(c) Copyright IBM Corporation 2004, 2008. All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.