Name
ActiveMQ — allows messages to be sent to or consumed from a JMS destination using Fuse Message Broker
Overview
The ActiveMQ component is a specialized version of the
JMS component that makes connecting to Fuse Message Broker easy.
It uses Spring's JMS support for declarative transactions, using Spring's
JmsTemplate for sending and a
MessageListenerContainer for consuming.
URI format
The URI format for an ActiveMQ endpoint is:
activemq:[queue:|topic:]destinationName?options
Where destinationName is an Fuse Message Broker queue or topic name. By
default, destinationName is interpreted as a queue name. To
connect to a topic, you must include the topic: prefix.
Dependencies
To use this component make sure the following are on the application's classpath:
activemq.jaroractivemq-core.jarcamel-core.jarcamel-spring.jarcamel-jms.jar
In addition, camel-jms and activemq-camel must be
listed as a dependency in the pom as shown in Example 7.1.
Example 7.1. Fuse Message Broker dependencies
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-jms</artifactId> <version>1.6.0</version> </dependency> <dependency> <groupId>org.apache.activemq</groupId> <artifactId>activemq-camel</artifactId> <version>5.2.0</version> </dependency>








