Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-5177

ActiveMQ Web Console URL log message hard coded to localhost

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.9.1
    • Fix Version/s: 5.10.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Apache ActiveMQ 5.9.1
      OSX

      Description

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

      INFO | ActiveMQ WebConsole available at http://localhost:8161/
      

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

      // 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);
                  }
              }
      

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

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              jsherman1 Jason Sherman
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: