1 Reply Latest reply on Aug 27, 2014 1:46 PM by chirino

    Remotely connecting to ActiveMQ JMS on Tomcat

    brmeyer

      For the Overlord project, we need to support JMS capabilities, both on the local VM as well as for external clients.  So far, we haven't had much luck on Tomcat (7.0.54).  Info:

       

      • TOMCAT_HOME/lib/activemq-all-5.8.0.jar exists
      • non-activemq jars from the ZIP's apache-activemq-5.8.0/lib also copied to TOMCAT_HOME/lib
      • activemq.xml, server.xml, context.xml
      • remote app is able to successfully discover ActiveMQConnectionFactory
      • ActiveMQConnectionFactory#createConnection() fails with:
        javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused

       

      I've also tried skipping the xbean activemq.xml altogether and using a "vm:(broker:(tcp://localhost:61616)?persistent=false)?marshal=false" brokerURL.

       

      No steps I've taken have shown the port open through netstat.

       

      I've closely following multiple docs and tutorials, but none of the variations have been successful.  Any ideas on how to add ActiveMQ to Tomcat (not TomEE), allow local JVM connections, and remote client connections?  Thanks!