Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-290

activemq:browse command for topics

    XMLWordPrintable

Details

    • Story
    • Resolution: Won't Do
    • Minor
    • A-MQ 7.0.0.GA
    • None
    • None
    • None

    Description

      I am not sure yet if browsing of topic's messages is a valid use case, but this feature is in-process in the current implementation which suggests that it might be relevant:

      https://github.com/jboss-fuse/activemq/blob/5.11.0.redhat-6-2-x-patch/activemq-console/src/main/java/org/apache/activemq/console/command/AmqBrowseCommand.java#L133

      https://github.com/jboss-fuse/activemq/blob/5.11.0.redhat-6-2-x-patch/activemq-console/src/main/java/org/apache/activemq/console/filter/AmqMessagesQueryFilter.java#L121

      On the other hand, it is mentioned that browsing of topics is not valid in ENTESB-2600. If so, it would be good to adjust the command to warn in case of an attempt to browse topic's messages as well as to change the command help (s/destination/queue/).

      Currently, you will get:

      JBossFuse:karaf@root> activemq:browse --amqurl tcp://localhost:61616 --user admin --password admin topic:ActiveMQ.Advisory.MasterBroker
      ERROR: java.lang.RuntimeException: Failed to execute browse task. Reason: java.lang.NullPointerException
      java.lang.RuntimeException: Failed to execute browse task. Reason: java.lang.NullPointerException
      	at org.apache.activemq.console.command.AmqBrowseCommand.runTask(AmqBrowseCommand.java:155)
      	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:62)
      	at org.apache.activemq.karaf.commands.ActiveMQCommandSupport.doExecute(ActiveMQCommandSupport.java:49)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              trohovsky Tomas Rohovsky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: