Oracle CEP Deployment Process

December 30, 2009 at 10:28 am | Posted in Oracle CEP | 1 Comment

Overview of Using the Deployer Command-Line Utility

The Deployer is a Java-based deployment utility that provides administrators and developers command-line based operations for deploying Oracle CEP applications. In the context of Oracle CEP deployment, an application is defined as an OSGi bundle JAR file that contains the following artifacts:

1. The compiled Java class files that implement some of the components of the application, such as the adapters, adapter factory, and POJO that contains the business logic.

2. One or more Oracle CEP configuration XML files that configure the components of the application, such as the processor, adapter, or streams.

3. The configuration files must be located in the META-INF/wlevs directory of the OSGi bundle JAR file.

4. An EPN assembly file that describes all the components of the application and how they are connected to each other. The EPN assembly file extends the standard Spring context file.
The EPN assembly file must be located in the META-INF/spring directory of the OSGi bundle JAR file.

5. A MANIFEST.MF file that describes the contents of the JAR.

Required Environment for the Deployer Utility

Install and configure the Oracle CEP software, as described in Installing Oracle CEP.

Open a command window and set your environment as described in Setting Up Your Development Environment using following steps.

1.Update your PATH environment variable to include the bin directory of the JRockit JDK. Also, be sure that your PATH environment variable includes the bin directory of your Ant installation.
If using the JRockit JDK installed with Oracle JRockit Real Time 3.0:

2. If you installed Oracle JRockit Real Time 3.0 in the d:\jrockit directory and Ant is installed in the d:\ant directory, set your PATH environment variable as shown:

prompt> set PATH=d:\jrockit\jrrt-3.0.0-1.6.0\bin;d:\ant\bin;%PATH%If using the JRockit JDK installed with Oracle CEP 11g

3. If you installed Oracle CEP 11g in the d:\oracle_cep directory and Ant is installed in the d:\ant directory, set your PATH environment variable as shown:

prompt> set PATH=d:\oracle_cep\jrockit-R27.6.0-50-1.6.0_05\bin;d:\ant\bin;%PATH%Ensure that the JAVA_HOME variable in the server start script points to the correct JRockit JDK. If it does not, edit the script.

4. The server start script (called startwlevs.cmd) is located in the defaultserver subdirectory of the main domain directory; the defaultserver subdirectory contains the files for the standalone server of each domain. For example, the HelloWorld domain is located in ORACLE_CEP_HOME\ocep_11\samples\domains\helloworld_domain, where ORACLE_CEP_HOME refers to the main Oracle CEP installation directory, such as d:\oracle_cep.

5. If using the JRockit JDK installed with Oracle JRockit Real Time 3.0, the set command should be as follows:

set JAVA_HOME=d:\jrockit\jrrt-3.0.0-1.6.0If using the JRockit JDK installed with Oracle CEP 11g, the set command should be as follows:

set JAVA_HOME=d:\oracle_cep\jrockit-R27.6.0-50-1.6.0_05Set the JAVA_HOME variable in your own development environment to point to the JRockit JDK. If using the JRockit JDK installed with Oracle JRockit Real Time 3.0:

prompt> set JAVA_HOME=d:\jrockit\jrrt-3.0.0-1.6.0If using the JRockit JDK installed with Oracle CEP 11g:

prompt> set JAVA_HOME=d:\oracle_cep\jrockit-R27.6.0-50-1.6.0_05

Update your CLASSPATH variable to include the wlevsdeploy.jar JAR file, located in the ORACLE_CEP_HOME/ocep_11/bin directory where, ORACLE_CEP_HOME refers to the main Oracle CEP installation directory, such as /oracle_cep.

1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. nice article. thanks bharat


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: