HTTP Pub-Sub Adapter for Subscribing EPN Assembly File Configuration

Configuring HTTP Publish-Subscribe Server Adapters 8-15 n1:config

8.5.2 HTTP Pub-Sub Adapter for Subscribing Component Configuration

Table 8–2 lists the http-pub-sub-adapter element child elments applicable to an HTTP pub-sub adapter for subscribing. The following configuration file shows a complete example of configuring an HTTP pub-sub adapter for subscribing. ?xml version=1.0 encoding=UTF-8? n1:config xsi:schemaLocation=http:www.bea.comnswlevsconfigapplication wlevs_application_ config.xsd xmlns:n1=http:www.bea.comnswlevsconfigapplication xmlns:xsi=http:www.w3.org2001XMLSchema-instance http-pub-sub-adapter nameremotePublishername server-urlhttp:myhost.com:9102pubsubserver-url channelchannel1channel event-typecom.mycompany.httppubsub.PubsubEventevent-type userwlevsuser passwordwlevspassword http-pub-sub-adapter http-pub-sub-adapter namelocalPublishername server-context-pathpubsubserver-context-path channelchannel2channel Table 8–2 http-pub-sub-adapter for Subscribing Component Configuration Child Elements Child Element Description server-url Required. For each remote HTTP pub-sub adapter for subscribing, specify the URL of the remote HTTP pub-sub server to which the Oracle CEP application will publish. The remote HTTP pub-sub server could be another instance of Oracle CEP, or a WebLogic Server instance, or it could be any third-party HTTP pub-sub server NOTE: do not specify this option for a local HTTP pub-sub adapter. channel Required. For both local and remote HTTP pub-sub adapters for subscribing, specify the channel that the HTPP pub-sub adapter subscribes to. event-type Required. For both local and remote HTTP pub-sub adapters for subscribing, specify the fully qualified class name of the JavaBean to which incoming messages are mapped. At runtime, Oracle CEP uses the incoming key-value pairs in the message to map the message data to the specified event type. You must register this class in the EPN assembly file as a wlevs:event-type-repository element wlevs:class child element. For more information, see Section 2.2, Creating an Oracle CEP Event Type as a JavaBean . user Optional. For both local and remote HTTP pub-sub adapters for subscribing, if the HTTP pub-sub server to which the Oracle CEP application is publishing requires user authentication, specify a user name. password Optional. For both local and remote HTTP pub-sub adapters for subscribing, if the HTTP pub-sub server to which the Oracle CEP application is publishing requires user authentication, specify a password. Choose either password or encrypted-password but not both. encrypted-password Optional. For both local and remote HTTP pub-sub adapters for subscribing, if the HTTP pub-sub server to which the Oracle CEP application is publishing requires user authentication and requires password encryption, specify an encrypted password. Choose either password or encrypted-password but not both. 8-16 Oracle Complex Event Processing Developers Guide http-pub-sub-adapter http-pub-sub-adapter nameremoteSubscribername server-urlhttp:myhost.com:9102pubsubserver-url channelchannel3channel event-typecom.mycompany.httppubsub.PubsubEventevent-type http-pub-sub-adapter n1:config