Repeat for the next project. Right-click the project and select Open EPN Editor. If the EPN diagram opens without error, proceed to step 12. If the EPN diagram opens with the error shown in

4-28 Oracle Complex Event Processing Developers Guide Figure 4–29 Preferences Dialog

13. Select the Validaion option.

14. Ensure that the following validation options are checked: ■ CQL Validator ■ EPN Validator ■ XML Validator 15. Unselect all other options.

16. Click OK.

17. Validate build inclusions: If your application bundle is using bundle localization and has substitution variables in its MANIFEST.MF file such as: Bundle-Name: project.name Then your project root directory’s build.properties file element bin.include must contain a reference to your bundle.properties file such as: bin.includes = META-INF,\ Oracle CEP IDE for Eclipse Projects 4-29 bundle.properties,\ . 18. Perform source changes, if necessary. For more information, see: ■ Upgrading an Oracle CEP 10.3 Application to Run on Oracle CEP Release 11gR1 11.1.1 in the Oracle Complex Event Processing Getting Started ■ Oracle CEP Release Notes

4.7 Managing Libraries and Other Non-Class Files in Oracle CEP Projects

Many projects require the use of non-class files such as libraries or property files that were obtained from a source other than the project itself, whether that be third party libraries, internal libraries created in other projects, or otherwise. You can add the following non-class files to an Oracle CEP project, each with its own packaging and deployment characteristics: ■ Standard JAR Files : Adding a standard JAR file to a project makes for the easiest management of the library. The library is packaged directly with the project by the Oracle CEP IDE for Eclipse and you can check the library into a source code control system as part of the project. For more information, see: ■ Section 4.7.1, How to Add a Standard JAR File to an Oracle CEP Project ■ Section 4.7.2, How to Add an OSGi Bundle to an Oracle CEP Project ■ Section 4.7.3, How to Add a Property File to an Oracle CEP Project ■ Section 4.7.4, How to Export a Package ■ Section 4.7.5, How to Import a Package ■ Section 24.2.2.2.2, Accessing Third-Party JAR Files Using -Xbootclasspath ■ OSGi Bundles : If your library is already packaged as an OSGi bundle and you would like to deploy it to the server once allowing multiple applications to reference it, you can use the OSGi bundle library option. Note that this leaves some parts of deployment to the user since the OSGi bundle is not automatically packaged with the application. It can also make working in team environments a little more difficult because each developer must have the bundle in the DOMAIN_ DIR servernamemodules directory of their machine, rather than have it source controlled with the rest of the project. The main advantage of the OSGi bundle library option is that you can use the Oracle CEP server application library to manage OSGi bundle libraries to ensure that they are deployed before any applications that depend on them. For more information, see: ■ Section 4.7.2, How to Add an OSGi Bundle to an Oracle CEP Project ■ Section 24.1.3, Application Libraries ■ Property Files : Adding a Java property file to a project allows you to manage properties efficiently. You can add a Java property file to an Oracle CEP project so that the property file is deployed with your application and is available at runtime. For more information, see: 4-30 Oracle Complex Event Processing Developers Guide ■ Section 4.7.3, How to Add a Property File to an Oracle CEP Project ■ Section 1.1.5.1, Accessing Component and Server Configuration Using the ConfigurationPropertyPlaceholderConfigurer Class

4.7.1 How to Add a Standard JAR File to an Oracle CEP Project

If the library you need to use is a standard JAR file, you can add it to your Oracle CEP project. Alternatively, you can add a library as an OSGi bundle see Section 4.7.2, How to Add an OSGi Bundle to an Oracle CEP Project . When you add a standard JAR file to an Oracle CEP project, you can optionally expose some or all of its packages to other bundles that will depend on this bundle. To add a standard JAR file to an Oracle CEP project: 1. Create a folder in your Oracle CEP IDE for Eclipse project to put the JAR file in. Oracle recommends that you create a folder to put them in such as lib. To create a new folder, right-click your project folder and select New Folder. 2. Outside of the Oracle CEP IDE for Eclipse, copy your JAR file into the lib folder.

3. Inside the Oracle CEP IDE for Eclipse, right-click the lib folder and select

Refresh . The JAR file appears in the lib folder as Figure 4–30 shows. Figure 4–30 Oracle CEP IDE for Eclipse lib Directory

4. Expand the META-INF directory and right-click the MANIFEST.MF file and select

Open With Plug-in Manifest Editor . The Manifest Editor opens as Figure 4–31 shows. Oracle CEP IDE for Eclipse Projects 4-31 Figure 4–31 Manifest Editor: Build Tab

5. Click the Build tab.

6. Add your JAR file to the binary build under the project root as follows: ■ In the Binary Build area, expand the lib directory. ■ Check the box next to your library as Figure 4–31 shows. ■ Press hit CTRL-SHIFT-S to save all files. This edits the build.properties file in your project, and tells the Oracle CEP IDE for Eclipse to add the JAR file to your bundle when you build the bundle JAR.

7. In the Manifest Editor, click the Runtime tab.

The Runtime tab appears as Figure 4–32 shows.