How to Create an Oracle CEP Server Runtime

5-18 Oracle Complex Event Processing Developers Guide Figure 5–16 New Server Runtime Environment: New Oracle CEP v11.1 Runtime Dialog 6. Configure the dialog as shown in Table 5–11 .

7. Click Finish.

Table 5–11 New Server Runtime Dialog Attributes Attribute Description Oracle Middleware Home Directory The fully qualified path to the Oracle CEP server installation directory. This is the same as the Middleware Home that was selected when installing the server. When selecting this directory, select the directory that contains the Oracle CEP installation rather than the Oracle CEP directory itself. For example, choose: C:\OracleCEP But do not choose: C:\OracleCEP\ocep_11.1 The runtime wizard will use the installation to find the appropriate Oracle CEP installation directory. For more information, see Oracle Fusion Middleware Directory Structure and Concepts in the Oracle Complex Event Processing Getting Started. JRE The type of JRE to use. Select the type of JRE to use from the pull-down menu or click the Installed JRE preferences link to create a new JRE. Be sure to choose either JRockit Real Time or the JRockit JDK installed with your Oracle CEP installation. Oracle CEP IDE for Eclipse and Oracle CEP Servers 5-19

5.3 Managing Oracle CEP Servers

Using the Oracle CEP IDE for Eclipse and the Oracle CEP Visualizer accessible from the Oracle CEP IDE for Eclipse, you can manage many aspects of your Oracle CEP server during development. This section describes the following Oracle CEP server management tasks you can perform from the Oracle CEP IDE for Eclipse: ■ Section 5.3.1, How to Start a Local Oracle CEP Server ■ Section 5.3.2, How to Stop a Local Oracle CEP Server ■ Section 5.3.3, How to Attach to an Existing Local Oracle CEP Server Instance ■ Section 5.3.4, How to Attach to an Existing Remote Oracle CEP Server Instance ■ Section 5.3.5, How to Detach From an Existing Oracle CEP Server Instance ■ Section 5.3.6, How to Deploy an Application to an Oracle CEP Server ■ Section 5.3.7, How to Configure Connection and Control Settings for Oracle CEP Server ■ Section 5.3.8, How to Configure Domain Runtime Settings for Oracle CEP Server ■ Section 5.3.9, How to Start the Oracle CEP Visualizer from Oracle CEP IDE for Eclipse

5.3.1 How to Start a Local Oracle CEP Server

After you create a local server, you can start the Oracle CEP server from the Oracle CEP IDE for Eclipse. You can also start the local Oracle CEP server in debug mode. Alternatively, you can start the local Oracle CEP server from the command line and attach to it using Oracle CEP IDE for Eclipse. For more information, see: ■ Section 5.2.1, How to Create a Local Oracle CEP Server and Server Runtime ■ Section 5.4.1, How to Debug an Oracle CEP Application Running on an Oracle CEP Server ■ Section 5.3.3, How to Attach to an Existing Local Oracle CEP Server Instance To start a local Oracle CEP server: 1. Select Window Show Views Servers. The Servers view opens as shown in Figure 5–17 . 5-20 Oracle Complex Event Processing Developers Guide Figure 5–17 Starting an Oracle CEP Server 2. Start the server by choosing one of the following:

a. Click the Start the Server icon in the Servers view tool bar.

b. Right-click a server in the Servers view and select Start.

After starting the server you will see log messages from the server in the Console view.

5.3.2 How to Stop a Local Oracle CEP Server

After you start a local Oracle CEP server from the Oracle CEP IDE for Eclipse, you can stop the Oracle CEP server from the Oracle CEP IDE for Eclipse. For more information, see Section 5.3.1, How to Start a Local Oracle CEP Server . To stop a local Oracle CEP server: 1. Select Window Show Views Servers. The Servers view opens as shown in Figure 5–18 . Figure 5–18 Stopping an Oracle CEP Server

2. Stop the server by choosing one of the following:

a. Click the Stop the Server icon in the Servers view tool bar.

b. Right-click a server in the Servers view and select Stop.

Oracle CEP IDE for Eclipse and Oracle CEP Servers 5-21

5.3.3 How to Attach to an Existing Local Oracle CEP Server Instance

After you create a local server, you can start the local Oracle CEP server from the command line and attach Oracle CEP IDE for Eclipse to this existing, already running local Oracle CEP server instance. Alternatively, you can start the local Oracle CEP server directly from within Oracle CEP IDE for Eclipse. For more information, see: ■ Section 5.2.1, How to Create a Local Oracle CEP Server and Server Runtime ■ Section 5.3.1, How to Start a Local Oracle CEP Server To attach to an existing local Oracle CEP server instance: 1. Start the Oracle CEP server from the command line. For more information, see Starting and Stopping Oracle CEP Servers in the Oracle Complex Event Processing Administrators Guide.

2. Select Window Show Views Servers.

The Servers view opens as shown in Figure 5–17 . Figure 5–19 Attaching to an Existing Local Oracle CEP Server Instance

3. Attach to the already running local server by choosing one of the following:

a. Click the Start the Server icon in the Servers view tool bar.

b. Right-click a server in the Servers view and select Start.

The Attach to Running CEP Server dialog appears as Figure 5–20 shows. Figure 5–20 Attach to Running CEP Server

4. Click Yes.

After attaching to the server you will not see log messages from the server in the Console view.