Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section describes how the following main methods available to send WSO2 events to Agent broker via Custom Data Publishers. There are two main methods available to do this.

In both methods above mentioned methods, we can publish data in 3 ways as follows. They are

  • Data Publisher
  • AsyncDataPublisher
  • Load Balancing DataPublisher

Following blog post and article will provide more information regarding the above mentioned ways to publish data.

http://sinthu-rajan.blogspot.com/2012/12/non-blocking-data-publshing-for-bamcep.html

Info
titleInfor

For more information on the three data publishing methods, refer to this article in WSO2 library: http://wso2.org/library/articles/2012/07/creating-custom-agents-publish-events-bamcep

When publishing data in above mentioned ways, Before sending events we need to define the stream definition to send data.

All the values that are send in the event must match with the stream definition (In previous CEP versions) but CEP version 2.1.0 supports to send arbitrary key-value pairs which are not defined in the stream.

Below, we have discussed further regarding that.

Supporting arbitrary key-value pairs in WSO2 events 

...