Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveMQ Web Console only listens on localhost

I've got ActiveMQ installed as I want it. However, the Web Console only listens on localhost - how do I make it listen on all interfaces? I'm sure it's a "host"="0.0.0.0" somewhere but where?

like image 795
Khushil Avatar asked Sep 12 '25 08:09

Khushil


1 Answers

For the latest versions of ActiveMQ (e.g. 5.5), you can configure within the <activemq>/conf/jetty.xml file by adding a host property setting to the SelectChannelConnector bean.

<bean id="Connector" class="org.eclipse.jetty.server.nio.SelectChannelConnector">
    **<property name="host" value="0.0.0.0"/>**
    <property name="port" value="8161" />
</bean>

Looking at the SelectChannelConnector code, if the host property is not set (i.e. null) then it will use the default for InetSocketAddress, which is supposed to be the "wildcard address" per the JavaDoc, so I'm surprised its not automatically binding to all addresses on your server by default.

Hope that helps,

Scott

FuseSource

like image 127
scranton Avatar answered Sep 14 '25 00:09

scranton