Converting Between JSON Messages and Event Types

8-8 Oracle Complex Event Processing Developers Guide http-pub-sub-adapter nameremoteSubscribername server-urlhttp:myhost.com:9102pubsubserver-url channelchannel3channel event-typecom.mycompany.httppubsub.PubsubEventevent-type http-pub-sub-adapter Be sure this event type has been registered in the EPN assembly file by specifying it as a child element of the wlevs:event-type-repository element. 7. Finally, if the HTTP pub-sub server to which the Oracle CEP application is publishing requires user authentication, add user and password or encrypted-password elements to specify the username and password or encrypted password. For example: http-pub-sub-adapter nameremotePublishername server-urlhttp:myhost.com:9102pubsubserver-url channelchannel1channel event-typecom.mycompany.httppubsub.PubsubEventevent-type userwlevsuser passwordwlevspassword http-pub-sub-adapter 8. Optionally create a converter Java class if you want to customize the way the inbound or outbound messages are converted into event types. This step is optional because you can let Oracle CEP make the conversion based on mapping property names between the messages and a specified event type. See Section 8.3, Creating a Custom Converter Between the HTTP Pub-Sub Messages and Event Types. 9. If you are going to use the local HTTP pub-sub server associated with the Oracle CEP instance for local publishing, use Visualizer, the Oracle CEP Administration Tool, to add new channels with the channel pattern required by your application. For details, see How to Configure Security for an HTTP Publish-Subscribe Channel in the Oracle Complex Event Processing Visualizer Users Guide. 10. Update the EPN assembly file, adding declarations for each built-in pub-sub adapter you are adding to your application. See Section 8.4, Configuring the HTTP Pub-Sub Adapter EPN Assembly File. 11. Update the MANIFEST.MF file of your application, adding the package com.bea.core.encryption to the Import-Package header. For example: Import-Package: com.bea.core.encryption com.bea.wlevs.adapter.defaultprovider;version=11.1.1.4_0, ... See Section 24.2.2.1, Creating the MANIFEST.MF File for additional information on the manifest file.

8.3 Creating a Custom Converter Between the HTTP Pub-Sub Messages and Event Types

If you want to customize the way a message either inbound via a HTTP pub-sub adapter for subscribing or outbound via an HTTP pub-sub adapter for publishing is converted to an event type, or vice versa, you must create your own converter bean.