Assembling an Oracle CEP Application Using Oracle CEP IDE for Eclipse

Assembling and Deploying Oracle CEP Applications 24-13 You still use the provider attribute to specify the OSGI-registered adapter factory, although in this case the OSGI registration happens in a different EPN assembly file of the GlobalAdapter bundle from the EPN assembly file that actually uses the adapter. 5. If you have exported the event type in the GlobalAdapter bundle, you must explicitly import it into the application that is going to use it. You do this by adding the package to the Import-Package header of the MANIFEST.MF file of the application bundle as Section 24.2.2.1, Creating the MANIFEST.MF File describes.

24.2.4.2 How to Assemble a Custom Event Bean in its Own Bundle

You can assemble a custom event bean and its dependent classes in its own bundle. To assemble a custom event bean in its own bundle: 1. Create an OSGI bundle that contains only the custom event bean Java class and the custom event bean factory Java class. In this procedure, this bundle is called GlobalEventBean. 2. In the EPN assembly file of the GlobalEventBean bundle: ■ Register the custom event bean factory as an OSGI service as Section 15.3.1, Registering the Custom Event Bean Factory describes. ■ Do not declare the custom event bean component using the wlevs:adapter element. You will use this element in the EPN assembly file of the application bundle that actually uses the adapter. ■ If you want to further configure the custom event bean, follow the usual procedure as Section 15.4, Configuring the Custom Event Bean Component Configuration File describes. 3. Assemble and deploy the GlobalEventBean bundle as Section 24.5, Deploying Oracle CEP Applications describes. 4. In the EPN assembly file of the application that is going to use the custom event bean, declare the custom event bean component as Section 15.3.2, Declaring the Custom Event Bean Components in your Application describes. You still use the provider attribute to specify the OSGI-registered custom event bean factory, although in this case the OSGI registration happens in a different EPN assembly file of the GlobalEventBean bundle from the EPN assembly file that actually uses the adapter. 5. If you have exported the event type in the GlobalEventBean bundle, you must explicitly import it into the application that is going to use it. You do this by adding the package to the Import-Package header of the MANIFEST.MF file of the application bundle as Section 24.2.2.1, Creating the MANIFEST.MF File describes.

24.3 Managing Application Libraries

The Oracle CEP application library gives you a convenient location to deploy shared libraries and gives you complete control over the order in which shared libraries are deployed at Oracle CEP server start up time. 24-14 Oracle Complex Event Processing Developers Guide This section describes how to manage an Oracle CEP server application library, including: ■ Section 24.3.1, How to Define the Application Library Directory Using Oracle CEP IDE for Eclipse ■ Section 24.3.2, How to Create an Application Library Using bundler.sh ■ Section 24.3.3, How to Create an Application Library Using Oracle CEP IDE for Eclipse ■ Section 24.3.4, How to Update an Application Library Using Oracle CEP IDE for Eclipse ■ Section 24.3.5, How to View an Application Library Using the Oracle CEP Visualizer For more information, see Section 24.1.3, Application Libraries .

24.3.1 How to Define the Application Library Directory Using Oracle CEP IDE for Eclipse

Before you can use the Oracle CEP server application library, you must update your Oracle CEP IDE for Eclipse design time configuration with the location of the application library directory. For information on default application library configuration, see: ■ Section 24.1.3.1, Library Directory ■ Section 24.1.3.2, Library Extensions Directory For more information, see Section 24.3, Managing Application Libraries . To define an application library directory using Oracle CEP IDE for Eclipse: 1. Launch the Oracle CEP IDE for Eclipse.

2. Rigth-click the project and select Properties.

The Preferences dialog appears as shown in Figure 24–2 .