Next Steps Oracle Fusion Middleware Online Documentation Library

1-26 Oracle Complex Event Processing Developers Guide ■ Optionally configure the server in your domain to enable logging, debugging, and other services. See: – Section 5.2, Creating Oracle CEP Servers – Section 5.3, Managing Oracle CEP Servers – Section 24.4, Managing Log Message Catalogs – Understanding Oracle CEP Configuration in the Oracle Complex Event Processing Administrators Guide ■ Deploy the application to Oracle CEP. See Section 24.5, Deploying Oracle CEP Applications. ■ Optionally, use the Oracle CEP load generator and Oracle CEP Visualizer to test and tune your Oracle CEP application. The Oracle CEP load generator is a testing tool that you can use to test your application, in particular its rules. This testing tool can temporarily replace the adapter component in your application, for testing purposes. For details, see Chapter 25, Testing Applications With the Load Generator and csvgen Adapter. The Oracle CEP Visualizer is a runtime administration console with advanced diagnostic and maintenance features that you can use to manage and tune your Oracle CEP application. For details, see Oracle Complex Event Processing Visualizer Users Guide.d See also Section 5.4, Debugging an Oracle CEP Application Running on an Oracle CEP Server . 2 Overview of Oracle CEP Events 2-1 2 Overview of Oracle CEP Events This section describes Oracle CEP events, including: ■ Section 2.1, Oracle CEP Event Types ■ Section 2.2, Creating an Oracle CEP Event Type as a JavaBean ■ Section 2.3, Creating an Oracle CEP Event Type as a Tuple ■ Section 2.4, Creating an Oracle CEP Event Type as a Java Class ■ Section 2.5, Creating an Oracle CEP Event Type as a java.util.Map ■ Section 2.6, Using an Event Type Builder Factory ■ Section 2.7, Accessing the Event Type Repository ■ Section 2.8, Sharing Event Types Between Application Bundles

2.1 Oracle CEP Event Types

Event types define the properties of the events that are handled by Oracle CEP applications. Adapters receive incoming events from different event sources, such as the Java Messaging System JMS, or financial market data feeds. You must define an Oracle CEP event type for these events before a processor is able to handle them. You then use these event types in adapter and POJO Java code, and in the Oracle CQL and EPL rules you associate with the processors. Events are JavaBean or Java class instances in which each property represents a data item from the event source. Oracle CEP supports the following event type implementations: ■ JavaBean : an event type based on a Java Bean class. For more information, see Section 2.2, Creating an Oracle CEP Event Type as a JavaBean . ■ Tuple : an event type you create and register declaratively in the EPN assembly file. For more information, see Section 2.3, Creating an Oracle CEP Event Type as a Tuple . ■ Java Class : an event type based on a Java class. For more information, see: ■ Section 2.4, Creating an Oracle CEP Event Type as a Java Class ■ Section 2.6, Using an Event Type Builder Factory 2-2 Oracle Complex Event Processing Developers Guide ■ java.util.Map: an event type based on an instance of java.util.Map. For more information, see see Section 2.5, Creating an Oracle CEP Event Type as a java.util.Map . Oracle recommends that you define your events using the JavaBean or Java class and factory approach. Doing so allows you greater flexibility to deal with event types as part of your application logic and can simplify integration with existing systems. Alternatively, you can specify the properties of the event type declaratively in the EPN assembly file using wlevs:property tags, in which case Oracle CEP will use a java.util.Map or tuple. Tuple is the default and is similar to the Oracle CQL tuple. It essentially provides the user with an optimized implementation, however, the user must always set and get its value using the EventTypeRepository APIs. This approach is best used for quick prototyping or when the application developer does not need to deal with JavaBean events as part of the application logic or due to integration to some legacy system. For more information, see: ■ Section 2.1.1, Event Type Instantiation and Immutability ■ Section 2.1.2, Event Type and Serialization ■ Section 2.1.3, Event Type Data Types ■ Section 2.1.4, Creating Oracle CEP Event Types