You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jason Sherman (JIRA)" <ji...@apache.org> on 2014/05/10 23:56:14 UTC

[jira] [Created] (AMQ-5177) ActiveMQ Web Console URL log message hard coded to localhost

Jason Sherman created AMQ-5177:
----------------------------------

             Summary: ActiveMQ Web Console URL log message hard coded to localhost
                 Key: AMQ-5177
                 URL: https://issues.apache.org/jira/browse/AMQ-5177
             Project: ActiveMQ
          Issue Type: Bug
         Environment: Apache ActiveMQ 5.9.1
OSX
            Reporter: Jason Sherman
            Priority: Minor
             Fix For: 5.9.1


The following message is logged even if the Jetty Server Host is set to use a specific IP:

{code}
INFO | ActiveMQ WebConsole available at http://localhost:8161/
{code}

Looking at org/apache/activemq/web/WebConsoleStarter.java, the URL is hard coded to localhost:

{code}
// for embedded console log what port it uses
        if ("embedded".equals(webconsoleType)) {
            // show the url for the web consoles / main page so people can spot it
            String port = System.getProperty("jetty.port");
            if (port != null) {
                LOG.info("ActiveMQ WebConsole available at http://localhost:{}/", port);
            }
        }
{code}

The log message doesn't account for users setting the Jetty host property.



--
This message was sent by Atlassian JIRA
(v6.2#6252)