How can I disable embedded ActiveMQ-broker in ServiceMix?

apache servicemix tutorial
activemq embedded broker url
stop activemq windows
apache servicemix vs camel
activemq start stop script
what is broker url in activemq
servicemix documentation
fuse servicemix

I have ServiceMix 4.5.3 and would like to completely disable the internal/embedded ActiveMQ broker. What is the best/easiest way to accomplish that?


Apache ServiceMix instance comes with an embedded ActiveMQ JMS broker. on the same machine, but it will also enable you to distribute your routes over  It seems, that in case using an ActiveMQ-Consumer the depending components are not shut down is the correct order. As far as I can see, the JMSSessionPool is shutdown before the depending routes were


You can use the minimal distribution which AFAIR does not come with AMQ out of the box.

Otherwise you can modify the configuration file in etc/org.apache.karaf.features.cfg and remove activemq

logging—api — 1.6.3 | Disabling SLF4J API support. are Camel-based routes, embedded ActiveMQ message brokers, CXF web services, or Spring contexts. ServiceMix comes with an embedded ActiveMQ JMS broker that listens to the client connections on the port 61616. In order to use the embedded broker, you don't have to perform any additional administrative activities. The embedded ActiveMQ broker distributed out of the box with ServiceMix is configured with default settings and is ready to be used.


I experimented a bit and had success with the following:

  1. remove the activemq-broker.xml from the etc directory (or rename to something like amq.old)
  2. features:uninstall activemq-broker in karaf console

Step 2. may not be required, not sure

Pure restart of the embedded broker is not advisable, since it's state could be corrupted. Therefore, you're advised to createBroker("xbean:activemq.xml"); service.start(); service.waitUntilStarted(); service.stop(); service.waitUntilStopped​();  Using Spring 2.0. If you are using Spring 2.0 and ActiveMQ 4.1 or later (and xbean-spring 2.5 or later) you can embed the ActiveMQ broker XML inside any regular Spring.xml file without requiring the above factory bean. e.g. here is an example of a regular Spring XML file in Spring 2.0 which also configures a broker.


Simply edit the featuresBoot in etc/org.apache.karaf.features.cfg and remove the activemq features.

ServiceMix uses ActiveMQ to provide remoting, clustering, reliability and ServiceMix can be embedded into a JEE application server such as JBoss, Oracle You can easily create, delete, start and stop instances of Karaf through the console. The default configuration for the Apache ActiveMQ message broker resides in  EDIT: Rephrased the question: I want to use ActiveMQ as a messenger service between my server and client applications. I am trying to set up an embedded broker (i.e. not a separate process) wit


An update for the ServiceMix 7.0.1

For me I just removed the line in featuresRepositories= part:

mvn:org.apache.activemq/activemq-karaf/5.14.5/xml/features, \

(because I will not need to install it back)

and the three lines in featuresBoot= part:

activemq-broker-noweb, \
activemq-blueprint, \
servicemix-messaging

It looks like servicemix-messaging requires embedded ActiveMQ otherwise my ServiceMix does not start.

I am not yet sure this would be mandatory when I will integrate to my external ActiveMQ instance.

way to disable the default embedded ActiveMQ broker, so that an external The standalone broker in ESB Enterprise is configured via osgi  There are three main ways to disable persistence, such as for unit testing JMS code Set the NON_PERSISTENT message delivery flag on your MessageProducer Set the persistent=false flag in the <broker/> element of the Xml Configuration or on the property BrokerService Delete the persistence files before running your tests (a bit hacky)


This recipe will guide you through the process of starting the ServiceMix To stop displaying logs with the tail command, press Ctrl + C in the ServiceMix console. embedded ActiveMQ message brokers, CXF web services, or Spring contexts  ActiveMQ is the most popular and powerful open source messaging and integration pattern server. In this tutorial we demonstrate how to configure an Embedded ActiveMQ server with Spring Boot using either Java -or XML Configuration.


Disable the Embedded ActiveMQ in ServiceMix. Stop ServiceMix: ? Run features:uninstall activemq-broker in Karaf console. If you are using Spring 2.0 and ActiveMQ 4.1 or later (and xbean-spring 2.5 or later) you can embed the ActiveMQ broker XML inside any regular Spring.xml file without requiring the above factory bean. e.g. here is an example of a regular Spring XML file in Spring 2.0 which also configures a broker.


ServiceMix can also be embedded into a JEE application server such as easily create, delete, start and stop instances of Karaf through the console. 2 ServiceMix includes an instance of the ActiveMQ broker, which can be  I integrated servicemix web console under Jboss 4.2.3 but I can't find the embedded ActiveMQ broker inside the war file.. My Question is: Is There an ActiveMQ instance inside servicemix (fuse) console web? How to configure it? Or I have configure the activemq Resource Adapter for Jboss like embedded broker? Thanks a lot.