Select the diagnostic profile in the left domain tree and click the Add to Click the Dashboard link at the top of Oracle CEP Visualizer and drag and

4-52 Oracle Complex Event Processing Visualizer Users Guide 5 Managing Application Lifecycle 5-1 5 Managing Application Lifecycle This section contains the typical application tasks you can perform with Oracle CEP Visualizer to manage application lifecycle, including: ■ Section 5.1, Deploying an Application ■ Section 5.2, Suspending or Resuming an Application ■ Section 5.3, Updating an Application ■ Section 5.4, Uninstalling an Application For more information, see: ■ Section 3.2, Application Lifecycle Management ■ Chapter 10, Managing Deployments

5.1 Deploying an Application

Deploying an application refers to uploading to the server the JAR file that contains the application and then installing it, which makes it available to clients. Oracle CEP internally deploys an application as a two step processes. The first step involves starting the application bundle inside the OSGi container. The second step involves starting and initializing the application. Because the second step is asynchronous in nature, Oracle CEP Visualizer does not wait for the completion of the second operation. As soon as the application has successfully started, the Oracle CEP Visualizer navigation tree is updated automatically with the new deployment and a successful message will be sent to the dashboard. However, if the application fails to start, you must check for errors on the server side because no messagesupdates will occur on the Oracle CEP Visualizer. When you deploy an application, the Oracle CEP server starts a new configuration history for it. See Section 3.4, Configuration History Management . This section describes: Note: You may only deploy to a group if the target Oracle CEP server is part of a multi-server domain that is, if clustering is enabled. You may not deploy to a group if the target Oracle CEP 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. 5-2 Oracle Complex Event Processing Visualizer Users Guide ■ Section 5.1.1, How to Deploy an Application in a Standalone-Server Domain ■ Section 5.1.2, How to Deploy an Application in a Multi-Server Domain

5.1.1 How to Deploy an Application in a Standalone-Server Domain

This section describes how to deploy an application to a standalone-server domain. For information on deploying an application in a multi-server domain, see Section 5.1.2, How to Deploy an Application in a Multi-Server Domain . To deploy an application in a standalone-server domain: 1. In the left pane, navigate to and select the Deployment node. The Deployed Applications table is displayed in the Deployment screen on the right pane.

2. Click the Install button.

The Install Application screen is displayed.

3. Click the Upload tab.

4. Click the ... button to open a file browsing window.

5. Browse to the local directory that contains the JAR file of the application you want

to install and click Open. 6. Click Upload. In the Install Application tab, the JAR file appears in the table of uploaded files, as shown in Figure 5–1 . Figure 5–1 The Install Application Screen: Standalone-Server Domain 7. If you want the application JAR file removed from the Oracle CEP server after deploying, check the Remove file after deploy check box. Managing Application Lifecycle 5-3 In this case, you must upload the application JAR file again if you want to redeploy this application.

8. Select your application in the table and click Deploy.

The Review Deployment Information screen is displayed, as shown in Figure 5–2 . Figure 5–2 The Review Deployment Information Screen: Standalone-Server Domain

9. Click OK.

Your application is deployed and ready for use.

5.1.2 How to Deploy an Application in a Multi-Server Domain

This section describes how to deploy an application to a multi-server domain. For information on deploying an application in a standalone-server domain, see Section 5.1.1, How to Deploy an Application in a Standalone-Server Domain . For more information, see Chapter 18, Managing Multi-Server Domains . To deploy an application in a multi-server domain: 1. In the left pane, navigate to and select the Deployment node. The Deployed Applications table is displayed in the Deployment screen on the right pane.

2. Click the Install button.

The Install Application screen is displayed.

3. Click the Upload tab.

4. Click the ... button to open a file browsing window.

5. Browse to the local directory that contains the JAR file of the application you want

to install and click Open. 6. Click Upload. In the Install Application tab, the JAR file appears in the table of uploaded files, as shown in Figure 5–3 .