是否可以在WebSphere Liberty中使用通配符作为队列权限?

问题描述 投票:1回答:1

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_1myQueues.queue_n的访问权限,我似乎必须为每个队列创建一个部分。

我尝试了几个通配符,例如myQueues *或者像regexp myQueues。* - 但没有运气。我一直无法找到有关使用通配符的任何文档,因此有人可以确认或否认在这种情况下是否可以使用通配符?

jms message-queue websphere-liberty open-liberty
1个回答
0
投票

从我所看到的(挖掘到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.

也许是暗示自由社区的东西;)

© www.soinside.com 2019 - 2024. All rights reserved.