blob: 8f6980f843e953822593cf5f66ca05843ca48383 [file] [log] [blame]
<div class="wiki-content maincontent">
<h3>For ActiveMQ 3.x/4.x</h3>
<p>To use pure in-memory messaging you just need to set the broker URL to be</p>
<structured-macro ac:macro-id="b3266292-d211-4cd5-b05d-8bae5faa307c" ac:name="code" ac:schema-version="1"><plain-text-body>
vm://localhost
</plain-text-body></structured-macro>
<p>&#160;</p>
<p>Actually you can use any text after <em>vm://</em> so that you can segment multiple logical JMS brokers within the same JVM and classloader, using the name to distinguish between them.</p>
<p>There is an example of how to do this along with a description of the available protocols in the <link><page ri:content-title="URI Protocols"></page><link-body>Protocols overview</link-body></link>.</p>
<p>Also see: <link><page ri:content-title="How should I use the VM transport"></page><link-body>how to optimise the VM transport</link-body></link></p></div>