EPN Assembly File Overview of the Oracle CEP Programming Model

1-12 Oracle Complex Event Processing Developers Guide wlevs:channel id=helloworldOutputChannel event-type=HelloWorldEvent advertise=true wlevs:listener bean class=com.bea.wlevs.example.helloworld.HelloWorldBean wlevs:listener wlevs:source ref=helloworldProcessor wlevs:channel beans For some Oracle CEP features, you specify some configuration in the EPN assembly file and some in the component configuration file. For more information, see: ■ Section 4.3, Creating EPN Assembly Files ■ Section 1.1.5, Component Configuration Files ■ Section 1.1.6, How Components Fit Together ■ Appendix B.1, EPN Assembly Schema spring-wlevs-v11_1_1_3.xsd

1.1.5 Component Configuration Files

Each component in your event processing network adapter, processor, channel, or event bean can have an associated configuration file, although only processors are required to have a configuration file. The caching system also uses a configuration file, regardless of whether it is a stage in the event processing network. Component configuration files in Oracle CEP are XML documents whose structure is defined using standard XML Schema. You create a single file that contains configuration for all components in your application, or you can create separate files for each component; the choice depends on which is easier for you to manage. The wlevs_application_config.xsd schema file describes the structure of component configuration files. This XSD schema imports the following schemas: ■ wlevs_base_config.xsd: Defines common elements that are shared between application configuration files and the server configuration file ■ wlevs_eventstore_config.xsd: Defines event store-specific elements. ■ wlevs_diagnostic_config.xsd: Defines diagnostic elements. The structure of application configuration files is as follows. There is a top-level root element named config that contains a sequence of sub-elements. Each individual sub-element contains the configuration data for an Oracle CEP component processor, channel, or adapter. For example: ?xml version=1.0 encoding=UTF-8? n1:config xmlns:n1=http:www.bea.comnswlevsconfigapplication xmlns:xsi=http:www.w3.org2001XMLSchema-instance processor namehelloworldProcessorname rules query id=helloworldRule [CDATA[ select from helloworldInputChannel [Now] ]] query rules processor channel namehelloworldInputChannelname max-size10000max-size max-threads2max-threads Overview of Creating Oracle CEP Applications 1-13 channel channel namehelloworldOutputChannelname max-size10000max-size max-threads2max-threads channel n1:config For more information, see: ■ Section 1.1.5.1, Accessing Component and Server Configuration Using the ConfigurationPropertyPlaceholderConfigurer Class ■ Section 1.1.6, How Components Fit Together ■ Section 4.4, Creating Component Configuration Files