The embedded messaging server in WebSphere Liberty supports access control on queues. In the server.xml
, the following structure can be added under the messagingEngine section:
<messagingSecurity>
<role name="queueAccess">
<group name="admin"></group>
<queuePermission queueRef="myQueues.queue_1">
<action>ALL</action>
</queuePermission>
</role>
</messagingSecurity>
This would grant the admin user access to the queue myQueues.queue_1
but, if I want to grant access to multiple queues myQueues.queue_1
to myQueues.queue_n
, it seems I have to create a section per queue.
I have tried several wildcards, such as myQueues* or like a regexp myQueues.* - but no luck. I have been unable to find any documentation on the use of wildcards, so can someone confirm or deny whether wildcards are possible in this scenario?
Copyright Notice:Content Author:「danishrulez」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/52329231/is-it-possible-to-use-wildcards-for-queue-permissions-in-websphere-liberty