Using Message Arguments Using Message Catalogs With Oracle CEP Server

24-40 Oracle Complex Event Processing Developers Guide To deploy an Oracle CEP application using the Deployer utility: 1. Assemble your Oracle CEP application. See Section 24.2, Assembling an Oracle CEP Application. 2. Open a command window and set your environment as described in Setting Your Development Environment in the Oracle Complex Event Processing Getting Started. 3. Update your CLASSPATH variable to include the wlevsdeploy.jar JAR file, located in the ORACLE_CEP_HOMEocep_11.1bin directory where, ORACLE_ CEP_HOME refers to the main Oracle CEP installation directory, such as oracle_ cep. 4. Be sure you have configured Jetty for the Oracle CEP instance to which you are deploying your application. For more information, see Configuring Jetty for Oracle CEP in the Oracle Complex Event Processing Administrators Guide. 5. In the command window, run the Deployer utility using the following syntax to install your application in practice, the command should be on one line: prompt java -jar wlevsdeploy.jar -url http:host:portwlevsdeployer -user user -password password -install application_jar_file where ■ host refers to the hostname of the computer on which Oracle CEP is running. ■ port refers to the port number to which Oracle CEP listens; default value is 9002. This port is specified in the DOMAIN_DIRconfigconfig.xml file that describes your Oracle CEP domain, where DOMAIN_DIR refers to your domain directory. The port number is the value of the Port child element of the Netio element: Netio NameNetIOName Port9002Port Netio ■ user refers to the username of the Oracle CEP administrator. ■ password refers to the password of the Oracle CEP administrator. ■ application_jar_file refers to your application JAR file, assembled into an OSGi bundle as described in Section 24.2, Assembling an Oracle CEP Note: If you are using foreign stages, beware of the rules governing deployment and redeployment of dependent stages as Section 24.2.3, Assembling Applications With Foreign Stages describes. Note: If you are running the Deployer on a remote computer, see Running the Deployer Utility Remotely in the Oracle Complex Event Processing Administrators Guide. Assembling and Deploying Oracle CEP Applications 24-41 Application. This file must be located on the same computer from which you execute the Deployer utility. For example, if Oracle CEP is running on host ariel, listening on port 9002, username and password of the administrator is wlevswlevs, and your application JAR file is called myapp_1.0.0.0.jar and is located in the applications directory, then the command is in practice, the command should be on one line: prompt java -jar wlevsdeploy.jar -url http:ariel:9002wlevsdeployer -user wlevs -password wlevs -install applicationsmyapp_1.0.0.0.jar After the application JAR file has been successfully installed and all initialization tasks completed, Oracle CEP automatically starts the application and the adapter components immediately start listening for incoming events. The Deployer utility provides additional options to resume, suspend, update, and uninstall an application JAR file, as well as deploy an application to a specified group of a multi-server domain. For more information, see Deployer Command-Line Reference in the Oracle Complex Event Processing Administrators Guide. Oracle CEP uses the deployments.xml file to internally maintain its list of deployed application OSGi bundles. This file is located in the DOMAIN_ DIRservername directory, where DOMAIN_DIR refers to the main domain directory corresponding to the server instance to which you are deploying your application and servername refers to the actual server. See Appendix B.3, Deployment Schema deployment.xsd for information about this file. This information is provided for your information only; Oracle does not recommend updating the deployments.xml file manually. Note: You may only deploy to a group if the server is part of a multi-server domain that is, if clustering is enabled. You may not deploy to a group if the server is part of a standalone-server domain that is, if clustering is disabled. For more information, see Overview of Oracle CEP Multi-Server Domain Administration in the Oracle Complex Event Processing Administrators Guide.