...
Create an XML file with the following event receiver configurations. An event receiver implementation must start with
<eventReceiver
as the root element.>
Note In the following configuration, specify the respective adapter properties based on the transport type of the receiver within the
<from>
element. For the respective adapter properties of the event receiver configuration based on the transport type, see Event Receiver Types .Code Block language xml <eventReceiver name="EVENT-RECEIVER-NAME" statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventreceiver"> <from eventAdapterType="EVENT-ADAPTER-TYPE"> ................................. </from> <mapping customMapping="disable" type="xml"/> <to streamName="Test Stream" version="1.0.0"/> </eventReceiver>
The properties of the above configuration are described below.
Adapter property Description name
Name of the event receiver statistics
Whether monitoring event statistics is enabled for the receiver trace
Whether tracing events is enabled for the receiver xmlns
XML namespace for event receivers eventAdapterType
Type of the event adapter. customMapping
Whether a custom mapping is enabled on the receiver. type
Type of the enabled custom mapping. streamName
Name of the event stream to which the receiver is mapped. Add the XML file to the
<PRODUCT_HOME>/repository/deployment/server/eventreceivers/
directory directory. Since hot deployment is supported in the product, you can simply add/remove event receiver configuration files to deploy/undeploy event receivers to/from the server.
...
After a receiver is successfully added, it gets added to the list of receivers displayed under under Event in the in the Main menu of the product's management console. Click Edit Edit to change its configuration and redeploy it. This opens an XML-based editor allowing you to edit the event receiverr configurations event receiver configurations from the UI. Do your modifications and click Update. You can also delete it, enable/disable statistics or enable/disable tracing on it using the provided options in the UI as described below.
...