How do we configure JBoss A-MQ 6.1 so we can add a camel route using broker camel component to activemq.xml file
Issue
We are using JBoss A-MQ 6.1. We hope we can add a camel route that using broker camel component to ActiveMQ broker's "etc/activemq.xml" file, for instance:
<beans>
......
<transportConnectors>
<transportConnector name="openwire" uri="tcp://0.0.0.0:0?maximumConnections=1000"/>
</transportConnectors>
</broker>
<import resource="camel.xml"/>
</beans>
where the camel route in camel.xml file looks like:
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route id="brokerCamelTest">
<from uri="broker:queue:input" />
<setHeader headerName="JMSPriority">
<constant>9</constant>
</setHeader>
<to uri="broker:queue:output" />
</route>
</camelContext>
but it does not work out of box. Since we are getting following error:
2015-03-19 19:20:53,560 | ERROR | pool-33-thread-1 | ActiveMQServiceFactory | y$ClusteredConfiguration$$anon$4 390 | 135 - org.jboss.amq.mq-fabric - 6.1.1.redhat-423 | Exception on start: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'template': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'camel': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: BundleContext must be specified
-
Does JBOSS A-MQ support routes?
-
We would like to know whether JBOSS A-MQ 6.1 support routes or not?
Environment
- JBoss Fuse
- 6.1
- JBoss A-MQ
- 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.