Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The first three behave as in consume <consume> limiting the list of users to a named queue or all temporary queues. The additional <exchanges> element contains a number of <exchange> entries, this entry contains a list of users that are limited to using only that exchange for the given queue. This is used in the example below to limit the user 'client' to only be able to create temporary queues on the 'amq.direct' exchange.

NOTE: This section also suffers from the same issue as CONSUME <consume> with regard to the <temporary/> keyword. See the known issue for more details.

...

No Format
        <queue>
            <name>exampleQueue2</name>
            <users>
                <user>client</user>
            </users>
        </queue>

        <queue>
            <temporary/>
            <users>
                <user>client</user>
            </users>
        </queue>

The last <queue> entry sets access to the temporary queues. In this simple example where there is only a single named queue it would of course be correct to combine the definitions as follows:

No Format
            
        <queue>
            <temporary/>
            <name>exampleQueue2</name>
            <users>
                <user>client</user>
            </users>
        </queue>