Versions Compared

Key

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

WSO2Event event receiver is used to receive events in the WSO2Event format via Thrift or binary protocols. By default it uses the following ports to retrieve events.

  • For Thrift:
     - TCP port:7611
     - SSL port:7711
  • For Binary: 
    - TCP port:9611
    - SSL port:9711

Use the tcp://<hostname><HOSTNAME>:<port><PORT> and ssl://<hostname>:<port><HOSTNAME>:<PORT> URLs to send events to the server as follows.

  • Use the following format for load-balancing: 
    {tcp://<hostname><HOSTNAME>:<port><PORT>,tcp://<hostname>:<port><PORT>, ...}
  • Use the following format for failover:  
    {tcp://<hostname>:<port><HOSTNAME>:<PORT>|tcp://<hostname>:<port><PORT>| ...}
  • Use the following format to send messages to more than one cluster of endpoints (cluster is defined using "{}") : 
    {tcp://<hostname>:<port><HOSTNAME>:<PORT>|tcp://<hostname>:<port><PORT>| ...},{tcp://<hostname>:<port><PORT>}
    In the above format, the event is delivered to one endpoint on the first cluster of endpoints in a failover manner. Also, the same message is delivered to the endpoint defined in the second cluster.

...

You can also define the respective adapter properties of the event receiver based on the transport type within the <from> element of the event receiver configuration in the<CEPthe <PRODUCT_HOME>/repository/deployment/server/eventreceivers/ directory as follows.

...

Adapter PropertyDescriptionConfiguration file propertyExample
Is events duplicated in clusterIn a cluster whether the same event can reach two receiver nodes
events.duplicated.in.cluster
true/false