Configuration History Management Overview of Application Assembly and Deployment

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.