WebSphere Liberty中的嵌入式消息传递服务器支持对队列的访问控制。在server.xml
中,可以在messagingEngine部分下添加以下结构:
<messagingSecurity>
<role name="queueAccess">
<group name="admin"></group>
<queuePermission queueRef="myQueues.queue_1">
<action>ALL</action>
</queuePermission>
</role>
</messagingSecurity>
这将授予管理员用户访问队列myQueues.queue_1
的权限,但是,如果我想授予对多个队列myQueues.queue_1
到myQueues.queue_n
的访问权限,我似乎必须为每个队列创建一个部分。
我尝试了几个通配符,例如myQueues *或者像regexp myQueues。* - 但没有运气。我一直无法找到有关使用通配符的任何文档,因此有人可以确认或否认在这种情况下是否可以使用通配符?
从我所看到的(挖掘到openliberty的代码),它没有通配符处理程序。
我知道jboss使用这个通配符进行jms安全处理:
. (a single period) Denotes the space between words in a wildcard expression.
# (a pound or hash symbol) Matches any sequence of zero or more words.
* (an asterisk) Matches a single word.
也许是暗示自由社区的东西;)