activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Pennypacker <bruce.pennypac...@gmail.com>
Subject ActiveMQ + JMX + SSL + AWS
Date Tue, 19 Nov 2013 20:23:49 GMT
Hi all,

I'm trying to enable JMX access to ActiveMQ over an SSL connection to a
server located in Amazon's cloud but I'm not having any luck.  We have
existing Tomcat applications that I've successfully set up with JMX & SSL
by specifying all the following on the java command line:

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.password.file=/path/to/jmxremote.password
-Dcom.sun.management.jmxremote.access.file=/path/to/jmxremote.access
-Djava.rmi.server.hostname=<public IP>
-Dcom.sun.management.jmxremote.ssl=true
-Djavax.net.ssl.keyStore=/path/to/tomcat.keystore
-Djavax.net.ssl.trustStore=/path/to/tomcat.truststore
-Djavax.net.ssl.keyStorePassword=<password>
-Djavax.net.ssl.trustStorePassword=<password>
-Dcom.sun.management.jmxremote.ssl.need.client.auth=false

In the tomcat server.xml file I also have to specify to use Tomcat's JMX
listener along with the ports for the rmi registery & the server:

  <Listener
className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener"
              rmiRegistryPortPlatform="<num>"
rmiServerPortPlatform="<num+1>"
   />

I've tried pretty much everything I can think of to get all of this working
with ActiveMQ short of running ActiveMQ in Tomcat but nothing I've done
seems to work.  More often than not I'm able to get ActiveMQ up and running
but when I try to connect with jconsole I get nothing for a few minutes
followed by a timeout.  I've tried adding all these parameters to the
managementContext in my activemq.xml file without any luck, and I've also
tried passing all of these on the java command line for starting up
ActiveMQ.

Has anybody ever actually tried this combination of ActiveMQ + JMX + SSL +
AWS?  Anybody have any luck with it?

Thanks,

-Bruce

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message