Reputation: 59
I am running a Spring project which has an applicationContext.xml which contains Camel routes that puts a message onto an ActiveMQ queue that was manually created. Before running the project, I am manually starting the ActiveMQ server by logging into the folder activeMQ/bin and issuing the command activeMQ.
I would like to start ActiveMQ server from the applicationContext.xml . Can someone advice on how to do that?
Upvotes: 0
Views: 952
Reputation: 1376
ActiveMQ provides support to start its broker in spring. Use the spring-activemq namespace to configure a broker inside spring's application context for details check spring support for activemq (http://activemq.apache.org/spring-support.html)
Upvotes: 0
Reputation: 2500
Not sure if this helps you or not, but I've done it the other way around. When starting my activemq instance, it also starts my camel routes.
If this is a viable solution in your case, follow these steps
Upvotes: 0