Composite queues won't appear (be created) by simply adjusting activemq.xml

Solution Unverified - Updated -

Issue

  • When creating a composite queue (by editing activemq.xml) it doesn't seem like the queue is actually created.

When I try to connect to the composite queue (from another server), the folowing Exception is thrown:
Caused by: java.lang.SecurityException: User alice is not authorized to create: queue://FOO.BAR
We doesn't allow the user ('alice') to create queues so this seems to indicate that the queue doesn't exist according to A-MQ.

Part from my activemq.xml:

    <broker xmlns="http://activemq.apache.org/schema/core"
            brokerName="${broker-name}"
            dataDirectory="${data}"
            advisorySupport="false"
            start="false">

        ...

        <plugins>
            <jaasAuthenticationPlugin configuration="karaf" />
            <authorizationPlugin>
              <map>
                <authorizationMap groupClass="org.apache.karaf.jaas.boot.principal.RolePrincipal">
                  <authorizationEntries>
                    <authorizationEntry queue=">" read="admin,alice" write="admin,alice" admin="admin" />
                    <authorizationEntry topic=">" read="admin,alice" write="admin,alice" admin="admin" />
                    <authorizationEntry topic="ActiveMQ.Advisory.>" read="admin,alice" write="admin,alice" admin="admin,alice" /> 
                  </authorizationEntries>
                </authorizationMap>
              </map>
            </authorizationPlugin>
        </plugins>

        ...

        <destinations>
            <queue physicalName="FOO.BAR.COM"/>
        </destinations>

        <destinationInterceptors>
          <virtualDestinationInterceptor>
             <virtualDestinations>
               <compositeQueue name="FOO.BAR">
                 <forwardTo>
                   <queue physicalName="FOO.BAR.COM"/>
                 </forwardTo>
               </compositeQueue>
            </virtualDestinations>
         </virtualDestinationInterceptor>
       </destinationInterceptors>
    </broker>

What should I do to make the composite queue appear (be created) without having to use the 'admin' user in the A-MQ GUI (to create it as mentioned above)?

Environment

  • JBoss A-MQ
    • 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content