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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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 <CARBON_HOME> /repository/components/lib directory.

  • <CARBON_HOME> /lib/activemq-core-xxx.jar  
  • <CARBON_HOME> /lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar  

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 <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 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>
  • No labels