This documentation is for WSO2 Complex Event Processor 2.0.0. View documentation for 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.

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

  •  geronimo-jms_1.1_spec-1.0.jar
  • qpid-client-xxx.jar
  • 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 <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="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>