Local broker is an internal WS-Event Broker shipped with WSO2 CEP. This uses Local Transport when sending and receiving events from CEP.
Configuring through the User Interface
1. Log on to the product's management console and select "Broker -> Add" in the "Configuration" menu.
2. The "Create a New Broker" window opens using which new broker configurations can be added.
For example, enter the following details to create a WS-Event broker.
Broker Name : localBroker Broker Type : local
3. Click the "Add Broker" button once done. The "Available Brokers" page will open, which allows you to view the broker configurations by clicking on the broker name and delete brokers by clicking on "Delete" button.
Configuring through broker-manager-config.xml
Broker management configuration can be specified in the <CARBON_HOME>/repository/conf/broker-manager-config.xml file, whose configurations are loaded at server start-up.
1. Open the file and enter the following Local broker configurations inside the "brokerManagerConfiguration" element.
<brokerManagerConfiguration> .. <brokerConfiguraton name="localBroker" type="local"/> .. .. </brokerManagerConfiguration>
Configuring topics for Local broker
The topic used when using local broker will be the topic defined under Topic Management
Input/Output mapping supported by Local Broker
Local broker can be configured with XML input mapping, and XML output mapping of a query.