Every OEP application needs a way to specify how the incoming data will be processed in a manner that the OEP container understands.
There are two main ways of accomplishing this:
One way is to define all of the details regarding the specification of your events purely in XML within the application's spring assembly file. By using this method, you can define event types as either: a Java bean,
java.util.Map
, or tuple.The other way is to create a Plain Old Java Object (POJO) and map the class name to the name that you provide for the event. We will look at each of these ways in more detail.
The first main way to declare events is to explicitly define the event name, its properties, and data types in the spring assembly file of the application. You would define a type-name
attribute for your event and then the properties, as shown in the following example:
Using the OEP Java data cartridge, you can use Java class event-type
definitions within Java bean event definitions, as shown...