blob: bf19a6fdbd530f9d3e38c4c7950f538d15a8ac99 [file] [log] [blame]
<div class="wiki-content maincontent"><p>You can use ActiveMQ with <a shape="rect" class="external-link" href="http://hermesjms.sourceforge.net/" rel="nofollow">Hermes JMS</a> which is a graphical user interface for working with JMS queues. Please refer to the <a shape="rect" class="external-link" href="http://hermesjms.sourceforge.net/" rel="nofollow">Hermes JMS</a> site for detailed instructions on using this software. </p>
<h3 id="HermesJms-Demo">Demo </h3>
<p>Mark Bucayan kindly submitted a <a shape="rect" class="external-link" href="http://activemq.codehaus.org/HermesAndActiveMQ.html" rel="nofollow">Flash demo</a> showing how to use ActiveMQ inside Hermes.</p>
<p>Here are a few steps to get you started with ActiveMQ when using HermesJMS. </p>
<h3 id="HermesJms-AddActiveMQasaProvider">Add ActiveMQ as a Provider</h3>
<p>You need to register the jars required to run ActiveMQ inside HermesJMS. To do this click on Options -&gt; Preferences. Then on the Providers tab add the following jars: </p>
<ul><li><a shape="rect" class="external-link" href="http://repo1.maven.org/maven2/org/apache/activemq/" rel="nofollow">activemq-all.jar</a> Choose the version that matches your projects needs.</li></ul>
<ul><li><a shape="rect" class="external-link" href="http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-j2ee-management_1.0_spec/1.0/geronimo-j2ee-management_1.0_spec-1.0.jar" rel="nofollow">geronimo-j2ee-management_1.0_spec-1.0.jar</a></li></ul>
<h3 id="HermesJms-ConfigureanActiveMQSession">Configure an ActiveMQ Session</h3>
<p>On the Preferences dialog, the Sessions tab, create a new session using the org.activemq.ActiveMQConnectionFactory connection factory. </p>
<p>You can use the properties table to configure the various factory properties, like the brokerURL to connect to the server, if you wish to connect to a remote ActiveMQ message broker.</p>
<p>Finally you can add some Destinations to the dialog on this page. (Right click to add). Add the destination FOO.BAR for the default test programs.</p>
<h3 id="HermesJms-Viewingmessagesonqueues">Viewing messages on queues</h3>
<p>Use the tree control to open your session and the FOO.BAR destination. Try browse the queue. Then run the ActiveMQ sample producer via</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<pre class="brush: java; gutter: false; theme: Default" style="font-size:12px;">
mvn producer
</pre>
</div></div>
<p>And hitting refresh in HermesJMS and you should see the messages that have just been published.</p></div>