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

ActiveMQ Web Console URL log message hard coded to localhost

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.9.1
    • 5.10.0
    • None
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment