Configuring Eclipse Oracle Fusion Middleware Online Documentation Library

Overview of the Oracle CEP IDE for Eclipse 3-13 10. Confirm that the eclipse.vm property points to the Java 6.0 JRE you configured in the eclipse.ini file. 3-14 Oracle Complex Event Processing Developers Guide 4 Oracle CEP IDE for Eclipse Projects 4-1 4 Oracle CEP IDE for Eclipse Projects An Oracle CEP project is an Eclipse project that brings together all Oracle CEP artifacts. This chapter describes: ■ Section 4.1, Oracle CEP Project Overview ■ Section 4.2, Creating Oracle CEP Projects ■ Section 4.3, Creating EPN Assembly Files ■ Section 4.4, Creating Component Configuration Files ■ Section 4.5, Exporting Oracle CEP Projects ■ Section 4.6, Upgrading Projects ■ Section 4.7, Managing Libraries and Other Non-Class Files in Oracle CEP Projects ■ Section 4.8, Configuring Oracle CEP IDE for Eclipse Preferences

4.1 Oracle CEP Project Overview

An Oracle CEP application includes the following artifacts: ■ Java source files ■ XML configuration files ■ OSGi bundle Manifest file Figure 4–1 shows the Explorer after creating a project. 4-2 Oracle Complex Event Processing Developers Guide Figure 4–1 Oracle CEP Project Structure Table 4–1 summarizes the important files in an Oracle CEP project including their use and location.

4.2 Creating Oracle CEP Projects

Development of an Oracle CEP application begins by creating a project to hold all source code and related files. Table 4–1 Oracle CEP Project Artifacts File Type Location Description Java source files Any Java source folder. Default: src. Events, adapters, and listeners are implemented in an Oracle CEP application with Java files. All Java files must be in a source folder in order to be compiled. For more information, see Chapter 1, Overview of Creating Oracle CEP Applications . EPN assembly file META-INFspring These are the main files used to wire-up an EPN and to define event types. This is a Spring context file, and is where adapters, channels, processors, and listeners are connected. For more information, see Chapter 1.1.4, EPN Assembly File . Processor configuration file META-INFwlevs The processor configuration file is where the Complex Event Processor CEP is defined. In this file youll find processor rules defined in the Continuous Query Language - CQL or the Event Processing Language--EPL and other component configuration settings. For more information, see: ■ Chapter 10, Configuring Oracle CQL Processors ■ Chapter 11, Configuring EPL Processors MANIFEST.MF file META-INF The manifest file contains metadata about your application including its name, version, and dependencies, among others. For more information, see Chapter 24, Assembling and Deploying Oracle CEP Applications . Oracle CEP IDE for Eclipse Projects 4-3 Projects correspond 1-to-1 with Oracle CEP applications and are the unit of work that is associated with and deployed to a server instance. In concrete terms, the output of a built project is a single OSGi bundle JAR containing the Oracle CEP application.

4.2.1 How to Create an Oracle CEP Project

By default new projects are set to use Java 6.0. This section describes how to create an Oracle CEP project using Java 6. For information on configuring an Oracle CEP project to use Java 6, see Section 3.4, Configuring Eclipse . To create an Oracle CEP project: 1. Open the EPN Editor see Section 6.1, Opening the EPN Editor

2. Select File New Project.

The New Project - Select a Wizard dialog appears as shown in Figure 4–2 . Figure 4–2 New Project - Select a Wizard Dialog

3. Expand Oracle CEP and select Oracle CEP Application Project.

4. Click Next.

The New Oracle CEP Application Project wizard appears as shown in Figure 4–3 .