<p><strong>Can anyone recommend a tool for quickly posting test messages onto a JMS queue?</strong></p>
<p><strong>Description</strong>:</p>
<ol>
<li>The tool should allow the user to enter some data, perhaps an XML
payload, and then submit it to a queue.</li>
<li>I should be able to test consumer without producer.</li>
</ol>

[{'answer_id': 38242, 'author': 'Till', 'author_id': 2859, 'author_profile': 'https://Stackoverflow.com/users/2859', 'pm_score': 0, 'selected': False, 'text': "<p>I'm not aware of a simple client. I remember looking for one a long time ago when I researched different queue systems and trying JMS I couldn't find one then, and I couldn't find one now. One thing though - there are a ton of tutorials that get you started and you could do a simple form to achieve that.</p>\n\n<p>Sorry to be not more helpful.</p>\n"}, {'answer_id': 41164, 'author': 'Will', 'author_id': 816, 'author_profile': 'https://Stackoverflow.com/users/816', 'pm_score': 5, 'selected': True, 'text': '<p>This answer doesn\'t apply to all JMS brokers, but if you happen to be using <a href="http://activemq.apache.org/" rel="noreferrer">Apache ActiveMQ</a>, the web-based admin console (by default at <a href="http://localhost:8161/admin" rel="noreferrer">http://localhost:8161/admin</a>) allows you to manually send text messages to topics or queues. It\'s handy for debugging.</p>\n'}, {'answer_id': 42552, 'author': 'Bernie Perez', 'author_id': 1992, 'author_profile': 'https://Stackoverflow.com/users/1992', 'pm_score': 2, 'selected': False, 'text': '<p>Also if the JMS broker supports JMX like ActiveMQ does you can use JConsole to post message and do a lot more.</p>\n'}, {'answer_id': 52252, 'author': 'Christian Berg', 'author_id': 5035, 'author_profile': 'https://Stackoverflow.com/users/5035', 'pm_score': 4, 'selected': False, 'text': '<p><a href="http://hermesjms.com" rel="noreferrer">HermesJMS</a> seems to be a rather powerful client for interacting with JMS providers. In my opinion, it is pretty unintuitive and hard to set up, though. (At least I\'m mostly failing at it...)</p>\n\n<p>Other, more user-friendly clients are often vendor-specific. <a href="http://queuemanager.nl/" rel="noreferrer">Sonic Message Manager</a> is a very nice and simple-to-use open-source JMS client for <a href="http://www.sonicsoftware.com" rel="noreferrer">SonicMQ</a>. It would be great to have a client like that working with different providers.</p>\n'}, {'answer_id': 73737, 'author': 'James Strachan', 'author_id': 2068211, 'author_profile': 'https://Stackoverflow.com/users/2068211', 'pm_score': 2, 'selected': False, 'text': '<p>I recommend the approach of @Will and using the <a href="http://activemq.apache.org/web-console.html" rel="nofollow noreferrer">Web Console of ActiveMQ</a> which lets you post messages and browse queues or delete messages easily.</p>\n\n<p>Another approach I often use is to use a directory of files as sample data and use a Camel route to move the messages from the directory to a JMS queue - or to take them from a queue and save them to disk etc</p>\n\n<p>e.g.</p>\n\n<pre><code>from("file://someDirectory").\n  to("activemq:MyQueue");\n</code></pre>\n\n<p>This would move all the files from someDirectory and send them to an ActiveMQ queue called MyQueue. If you\'d rather leave the files in place you can use the URI "file://someDirectory?noop=true".</p>\n\n<p>For more details see </p>\n\n<ul>\n<li>the <a href="http://activemq.apache.org/camel/file.html" rel="nofollow noreferrer">file endpoint in Camel</a></li>\n<li>a <a href="http://activemq.apache.org/camel/spring-example.html" rel="nofollow noreferrer">sample Camel example routing from files to JMS</a></li>\n<li>the <a href="http://activemq.apache.org/camel/enterprise-integration-patterns.html" rel="nofollow noreferrer">various enterprise integration patterns Camel supports</a></li>\n</ul>\n'}, {'answer_id': 444350, 'author': 'Air', 'author_id': 44437, 'author_profile': 'https://Stackoverflow.com/users/44437', 'pm_score': 2, 'selected': False, 'text': '<p>IBM provide a free, powerful <a href="http://www.alphaworks.ibm.com/tech/perfharness" rel="nofollow noreferrer">command line tool called perfharness</a>.</p>\n\n<p>Although aimed at benchmarking JMS providers, it\'s really good at generating (and consuming) test messages. You can use data either generated randomly or taken from a file.</p>\n\n<p>The power features include sending and consuming messages at a fixed rate, using a specific number of threads, using either JMS or native MQ, etc. It generates statistics telling you exactly how fast your queue is performing (hence the name).</p>\n\n<p>The only down side is that it\'s not super intuitive, given the number of operations it supports.</p>\n'}, {'answer_id': 573743, 'author': 'Andy White', 'author_id': 60096, 'author_profile': 'https://Stackoverflow.com/users/60096', 'pm_score': 1, 'selected': False, 'text': '<p>ActiveMQ has a web console for sending test messages (like mentioned above), but if your provider doesn\'t have this, it might be easiest to just write a console app/web page to post test messages.  Sending a message in JMS isn\'t too hard, you might get the most benefit just writing your own test client.</p>\n\n<p>If you can use <a href="http://www.springsource.org/" rel="nofollow noreferrer">Spring</a> in Java, it has some really powerful utilities, check out the <a href="http://static.springframework.org/spring/docs/2.5.x/reference/jms.html" rel="nofollow noreferrer">JmsTemplate</a>.</p>\n'}, {'answer_id': 669848, 'author': 'mjn', 'author_id': 80901, 'author_profile': 'https://Stackoverflow.com/users/80901', 'pm_score': 3, 'selected': False, 'text': '<p><a href="http://jmeter.apache.org/" rel="noreferrer">Apache JMeter</a> is a tool (written for the Java platform) which allows:</p>\n\n<ul>\n<li><p>sending messages to a queue ( point to point)</p></li>\n<li><p>publishing/subscribing to a topic</p></li>\n<li><p>sending both persistent and non persistent messages</p></li>\n<li><p>sending text , map and object messages</p></li>\n</ul>\n\n<p>Apache ActiveMQ includes a ProducerTool and a ConsumerTool example sources (Java) with many command-line configuration options. As it is based on the JMS API, using it with other message brokers should be easy with minor modifications.</p>\n'}, {'answer_id': 2943639, 'author': 'Oleg Kiorsak', 'author_id': 354594, 'author_profile': 'https://Stackoverflow.com/users/354594', 'pm_score': 4, 'selected': False, 'text': '<p>The ActiveMQ\'s web-based admin console has a big deficiency - one cannot specify any headers / custom properties when posting a message.</p>\n\n<p>I came across a neat FOSS tool that can post a message and also specify headers/properties:</p>\n\n<p><a href="http://sourceforge.net/projects/activemqbrowser/" rel="noreferrer">http://sourceforge.net/projects/activemqbrowser/</a></p>\n\n<p>HTH</p>\n'}, {'answer_id': 5775909, 'author': 'NullPumpkinException', 'author_id': 294439, 'author_profile': 'https://Stackoverflow.com/users/294439', 'pm_score': 0, 'selected': False, 'text': '<p>I have built a GUI tool for administering Open Source JMS Servers (Currently Activemq and Hornetq). It can send and receive messages and most of the usual stuff, as well as aggregate queues and topics into logical "groups".</p>\n\n<p>Its a commercial product but the BETA is free and is fully functional.</p>\n\n<p>try it out at <a href="http://www.rockeyesoftware.com/" rel="nofollow">http://www.rockeyesoftware.com/</a></p>\n'}, {'answer_id': 8604458, 'author': 'Felipe Lino', 'author_id': 1111798, 'author_profile': 'https://Stackoverflow.com/users/1111798', 'pm_score': -1, 'selected': False, 'text': '<p>I\'m a brazilian developer and I made a Java program for Post HTTP and JMS Messages his available for download at: <a href="https://sites.google.com/site/felipeglino/softwares/posttool" rel="nofollow">https://sites.google.com/site/felipeglino/softwares/posttool</a></p>\n\n<p>In thath page you can found english instructions.</p>\n'}, {'answer_id': 17559190, 'author': 'eebbesen', 'author_id': 2317829, 'author_profile': 'https://Stackoverflow.com/users/2317829', 'pm_score': 0, 'selected': False, 'text': '<p>For ActiveMQ the examples directory holds scripts.  For Rubyists, look at example/ruby/stompcat.rb and catstomp.rb for subscribing and publishing.</p>\n'}]
['https://Stackoverflow.com/questions/37969', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2454/']