Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-458

Command activemq:list, activemq:browse return null

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      ServiceMix 4.1-SNAPSHOT

      Description

      When the activemq config file is deployed through the feature activemq-broker, than the command activemq:browse, activemq:list display null instead of the instance of activemq running

      karaf@root> activemq:browse
      null
      karaf@root> activemq:list
      null
      

      Bundles installed :

      [  42] [Active     ] [            ] [       ] [   60] kahadb (5.3.0)
      [  43] [Active     ] [            ] [       ] [   60] activemq-core (5.3.0)
      [  44] [Active     ] [            ] [       ] [   60] activemq-ra (5.3.0)
      [  45] [Active     ] [            ] [       ] [   60] activemq-console (5.3.0)
      [  46] [Active     ] [            ] [       ] [   60] activemq-pool (5.3.0)
      [  47] [Active     ] [Created     ] [       ] [   60] Apache ServiceMix Features :: ActiveMQ Commands (4.1.0.SNAPSHOT)
      [  59] [Active     ] [            ] [       ] [   60] activemq-broker.xml (0.0.0)
      

        Issue Links

          Activity

          Hide
          ccustine Chris Custine added a comment -

          The default behavior of the activemq cli doesn't work in the SMX4 console (where it defaults to the local instance if you don't specify a JMX url or --jmxlocal). So in other words, currently you have to use --jmxlocal for most of the commands. For instance: activemq:list --jmxlocal or activemq:query --jmxlocal. For browse, you will have to specify the local instance url such as: activemq:browse --amqurl tcp://localhost:61616 FOO.BAR

          We'll try to get AMQ commands more tightly integrated with the shell and more aware of the local instance in the future.

          Show
          ccustine Chris Custine added a comment - The default behavior of the activemq cli doesn't work in the SMX4 console (where it defaults to the local instance if you don't specify a JMX url or --jmxlocal). So in other words, currently you have to use --jmxlocal for most of the commands. For instance: activemq:list --jmxlocal or activemq:query --jmxlocal. For browse, you will have to specify the local instance url such as: activemq:browse --amqurl tcp://localhost:61616 FOO.BAR We'll try to get AMQ commands more tightly integrated with the shell and more aware of the local instance in the future.
          Hide
          ffang Freeman Fang added a comment -

          I believe this issue get fixed by SMX4-784[1]

          https://issues.apache.org/jira/browse/SMX4-784

          Show
          ffang Freeman Fang added a comment - I believe this issue get fixed by SMX4-784 [1] https://issues.apache.org/jira/browse/SMX4-784

            People

            • Assignee:
              ffang Freeman Fang
              Reporter:
              cmoulliard Charles Moulliard
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development