This documentation is for WSO2 CEP 2.1.0. View the home page of the latest release.

Configuring JMS-Qpid Broker

Follow the instructions below to configure Qpid JMS Broker.

1. Refer to http://qpid.apache.org for instructions on installing JMS-Qpid Broker and JMS-Qpid Client.

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

Following jar can be find in the Apache Active MQ installation directory.

  •  <ACTIVEMQ_HOME>/lib/geronimo-jms_1.1_spec-1.0.jar  

Following jars can be find in the Apache  Qpid Client installation directory.

  • <QPID-CLIENT_HOME>/lib/qpid-client-xxx.jar
  • <QPID-CLIENT_HOME>/lib/qpid-common-xxx.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  	  : qpidJmsBroker 
Broker Type  	  : jms-qpid 
JNDI Name    	  : org.apache.qpid.jndi.PropertiesFileInitialContextFactory  
User Name    	  : admin  
Password     	  : admin  
IP Address   	  : localhost
Port         	  : 5672
Virtual Host Name : test

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.

<brokerManagerConfiguration> 
	.. 
		<brokerConfiguraton name="qpidJmsBroker" type="jms-qpid"> 
			<property name="jndiName"> org.apache.qpid.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">test</property>
		</brokerConfiguraton> 
	.. 
	.. 
</brokerManagerConfiguration>

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 Text, XML or Map   output mapping of a query.

Copyright © WSO2 Inc. 2005-2014