Unknown macro: {search-box}
Child pages
  • Using WSO2 MB as A JMS Broker for WSO2 CEP Server

This documentation is for WSO2 Message Broker version 2.1.1. View documentation for the latest release.

Skip to end of metadata
Go to start of metadata

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

1. Refer to Installation Prerequisites for instructions on installing WSO2MB

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

You can find the following jars in the WSO2 Message Broker installation directory.

  • <WSO2MB_HOME> /client-lib /andes-client-xx.jar
  • <WSO2MB_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


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 <CEP_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.

        <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>

Configuring topics for JMS broker

The topic used when using JMS broker will be the standard JMS topics

Input/Output mapping supported by JMS Broker

JMS broker can be configured with XML or Map input mapping, and TextXML or Map output mapping of a query.

  • No labels