activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Sherman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-5177) ActiveMQ Web Console URL log message hard coded to localhost
Date Sat, 10 May 2014 21:56:14 GMT
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)

Mime
View raw message