How do I turn off creating an embedded ActiveMQ Classic broker when using the VM transport

 FAQ > Using Apache ActiveMQ Classic > How do I turn off creating an embedded ActiveMQ Classic broker when using the VM transport

You can turn off auto creation by setting the create property on the VM Transport to false:

ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost?create=false");

Apache, ActiveMQ, Apache ActiveMQ, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2024, The Apache Software Foundation. Licensed under Apache License 2.0.