layout: default_md title: How do I turn off creating an embedded ActiveMQ broker when using the VM transport title-class: page-title-activemq5 type: activemq5

 FAQ > Using Apache ActiveMQ > How do I turn off creating an embedded ActiveMQ 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");