This documentation is for WSO2 Complex Event Processor 2.0.0. View documentation for the latest release.

Configuring WSO2MB as JMS-Qpid Broker

Follow the instructions below to configure WSO2MB as a JMS-Qpid Broker.

1. Refer to Installation Prerequisites for instructions on installing JMS-Qpid Broker.

2. Before starting WSO2 CEP, add the following broker-specific jars to <CARBON_HOME> /repository/components/lib directory.  

  • <CARBON_HOME> /client-lib /andes-client-xx.jar
  • <CARBON_HOME> /client-lib /geronimo-j2ee-management_1.1_spec-1.0.1xx.jar

Configuring JMS-Qpid Broker through the User Interface

1. Log on to the product's management console and select "Broker -> Add" menu under the "Configuration" menu.

2. The "Create a New Broker" window opens. For example, enter the following details to create an JMS-Qpid broker.

Broker Name  	  : MBJmsBroker 
Broker Type  	  : jms-qpid 
JNDI Name    	  : org.wso2.andes.jndi.PropertiesFileInitialContextFactory   
User Name    	  : admin  
Password     	  : admin  
IP Address   	  : localhost
Port         	  : 5672
Virtual Host Name : carbon

Note

It is assumed that the message broker is started with the default offset, which is 0. If not, add the offset to the port when configuring the WSO2 Message Broker as shown above.

3. Click the "Add Broker" button once configuration details are added. You will be directed to the "Available Brokers" window.

Broker configurations can be viewed by clicking on the broker name and brokers can be deleted by clicking on the "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 JMS Qpid broker configurations inside the "brokerManagerConfiguration" element.

Broker management configuration can be provided via broker-manager-config.xml. These configurations will be loaded at server start-up.

<brokerManagerConfiguration> 
    .. 
        <brokerConfiguraton name="MBJmsBroker" type="jms-qpid"> 
            <property name="jndiName">org.wso2.andes.jndi.PropertiesFileInitialContextFactory</property> 
            <property name="username">admin</property> 
            <property name="password">admin</property> 
            <property name="ipAddress">localhost</property>
            <property name="port">5672</property> 
            <property name="virtualHostName">carbon</property>
        </brokerConfiguraton> 
    .. 
    .. 
</brokerManagerConfiguration>