How do I run ActiveMQ in an OSGi Felix container?

Hi, I would like to run ActiveMQ inside an Apache Felix OSGi container. I don't want to run it as an embedded broker, in other words, I don't want to write any code. The ideal situation would be to simply deploy AMQ jars inside Felix and modify the config files to change its behavior.

It looks like it's possible with the Apache Karaf container, but I can't find any documentation on how to do it in felix, nor a clear answer if it's possible.

Thank.

+3


source to share


2 answers


It looks like you are looking for Apache Service Mix

= Apache Karaf with ActiveMQ + Apache Camel + Apache CXF + other nice stuff.



But if you rather do it yourself, you can stick with Karaf or Felix, can you just grab the ActiveMQ package and make it look like this tutorial?

http://activemq.apache.org/osgi-integration.html

+3


source


If you really want to deploy ActiveMQ in pure Apache Felix, then the best way to start is to learn the Karaf feature for ActiveMQ. You need to install all bundles related to it and some basic karaf packages.

In the ActiveMQ Karaf function, the broker is started using the Spring or Blueprint utility from Karaf. This will look for Spring dm or blueprint files and run them. The broker configuration is the file that runs the entire ActiveMQ.



So with some effort this should be possible, but in the end you will be duplicating a lot of karaf's functionality. So using Karafa in the first place, as Petter suggests, is the easier way to go.

+3


source







All Articles