Configuring ActiveMQ JMS Broker
Follow the instructions below to configure ActiveMQ JMS Broker.
1. Refer to Installation Prerequisites for instructions on installing Apache ActiveMQ JMS Broker.
2. Before starting WSO2 CEP, add the following broker-specific jars to <CEP_HOME>/repository/components/lib directory.
you can find following jars in the Apache ActiveMQ installation directory.
- <ACTIVEMQ_HOME> /lib/activemq-core-xxx.jar Â
- <ACTIVEMQ_HOME> /lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar  Â
Note
In this documentation ActiveMQ examples are based on the ActiveMQ versions 5.7.0 and below. If you want to use ActiveMQ version 5.8.0, please make necessary changes based on the information given in ActiveMQ site.
Configuring ActiveMQ JMS 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 ActiveMQ JMS broker.
Broker Name : activemqJmsBroker Broker Type : jms JNDI Name : org.apache.activemq.jndi.ActiveMQInitialContextFactory User Name : admin Password : admin Provider URL : tcp://localhost:61616
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 ActiveMQ 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="activemqJmsBroker" type="jms"> <property name="jndiName">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property> <property name="username">admin</property> <property name="password">admin</property> <property name="providerUrl">tcp://localhost:61616</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