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

Diverts created using mbeans createDivert() create weird addresses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • AMQ 7.1.0.GA
    • queuing
    • None

      When creating new divert using

      getServerControlMBean().createDivert(divertName, routingName, addressName, forwardingAddress, exclusive, selector, transformerClass, routingType);
      

      a new "quoted" address is created, which is not showed in getAddresses() or any call in broker. They are completely missed out by broker.

      Example of AMQX client call, which will create such a weird address (with only divert on it).

      java -jar amqx.jar divert --host <hostip> -a add --name div -o routingName --address lalaQ -f lala -e true -b "0.0.0.0"
      

      Once this is created, you can navigate through hawtio console, and clearly see everything is there as should be. But once you list addresses(), such address is missed out from there.

      Even mbean "object path" is there correct:

      org.apache.activemq.artemis:broker="0.0.0.0",component=addresses,address="lalaQ",subcomponent=diverts,divert="div"
      

              rh-ee-ataylor Andy Taylor
              mtoth@redhat.com Michal Toth
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: