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 * 或正则表达式 myQueues。* -但没有运气。我找不到有关通配符使用的任何文档,因此有人可以确认或拒绝在这种情况下通配符是否可用吗?
答案 0 :(得分:0)
From what I can see (digged into the code of openliberty), there is no wildcard handler for it.
I know jboss uses this wildcard for jms security handling:
. (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.
Maybe something to hint for the liberty community ;)