title: ActiveMQ sendMessage via script
body: <p>Has anyone had any luck scripting inserts of ActiveMQ topics using, say, curl?
  I'm trying something like this </p>
  
  <pre><code>curl -d "JMSDestination=COMMON_TOPIC&amp;JMSDestinationType=topic&amp;JMSMessageCount=1&amp;JMSText={\"name\":\"values-etc\"}}" http://localhost:8161/admin/sendMessage.action
  </code></pre>
  
  <p>I get back HTTP 500 NullPointerException which looks like <a href="https://issues.apache.org/jira/browse/AMQ-2740" rel="nofollow">AMQ-2740</a></p>
  
  <pre><code>java.lang.NullPointerException
  at org.apache.activemq.web.handler.BindingBeanNameUrlHandlerMapping.getHandlerInternal(BindingBeanNameUrlHandlerMapping.java:57)
  </code></pre>
  
  <p>Looks like the problem is generating a secret key and the re-sending it, which is where I get lost. Anyone had luck with this?</p>