How the HTTP Pub-Sub Server Works

14-6 Oracle Complex Event Processing Administrators Guide

14.3 Configuring an Existing HTTP Publish-Subscribe Server

The following procedure describes how to configure an existing HTTP pub-sub server. See Section 14.4, Example HTTP Publish-Subscribe Server Configuration for a full example from the config.xml of a configured HTTP pub-sub server. To configure an existing HTTP publish-subscribe server: 1. If the Oracle CEP server is running, stop it. See Section 1.5.4, Starting and Stopping Oracle CEP Servers . 2. Using your favorite XML editor, open the Oracle CEP servers config.xml file. This file is located in the DOMAIN_DIRservernameconfig directory, where DOMAIN_DIR refers to the domain directory and servername refers to the name of the server, such as oracle_cepuser_ projectsmyDomaindefaultserverconfig. 3. Search for the http-pubsub element that corresponds to the HTTP pub-sub server you want to configure. For example, the default HTTP pub-sub server is as follows: http-pubsub namepubsubname pathpubsubpath pub-sub-bean server-config ... http-pubsub 4. Update the server-config child element of the pub-sub-bean element which in turn is a child element of http-pubsub with HTTP pub-sub server configuration as required. For the full list of possible elements, see Server Configuration XSD Schema: wlevs_server_config.xsd in the Oracle Complex Event Processing Developers Guide for Eclipse. The following are the most common configuration options: ■ Add a supported-transport element to specify the transport. The format of this element is as follows: server-config supported-transport types elementlong-pollingelement types supported-transport ... server-config Oracle CEP server supports the following transports: – long-polling: Using this transport, the client requests information from Oracle CEP server and if Oracle CEP server does not have information available, it does not reply until it has. When the Oracle CEP server replies, the client typically sends another request immediately. – callback-polling: Use this transport for HTTP publish-subscribe applications using a cross domain configuration in which the browser downloads the page from one Web server including the Javascript code