Java objects are used as representations of the Common Base Event specification.
The Common Event Infrastructure represents events as Java objects. Specifically, each event is an instance of a class implementing the org.eclipse.hyades.logging.events.cbe.CommonBaseEvent interface, which is a Java representation of the Common Base Event specification. The org.eclipse.hyades.logging.events.cbe package is part of the Eclipse-based Hyades environment, which is a set of standards and open-source tools for testing, tracing, and monitoring. For more information, see http://www.eclipse.org/hyades/.
The typical life cycle of an event is as follows:
If publishing is enabled, the event server publishes the event to one or more Java Messaging Service (JMS) destinations. Event consumers subscribing to these destinations then receive notifications of the new event. The event consumers then use the Notification Helper to convert the received JMS messages back into a CommonBaseEvent instance.
An event consumer might also submit a query to retrieve the event from the data store. Typically, a consumer uses the query interface to retrieve historical events, especially during startup processing.
After receiving the event, an event consumer reads the event property data and processes the event.
The CommonBaseEvent interface defines getter and setter methods for each property, as well as helper methods to simplify creation of complex properties. An event source uses the setter methods (or the helper methods) to populate an event with property data before submitting it to an emitter; an event consumer uses the getter methods to retrieve the property data from a received event.
For more information about the XML Schema specification, see http://www.w3.org/XML/Schema.