简体   繁体   English

列出队列管理器上的所有队列

[英]List all queues on a queue manager

I am trying to list all the queue names on a queue manager using Java. 我正在尝试使用Java列出队列管理器上的所有队列名称。 I am not allowed to use PCF messages. 我不允许使用PCF消息。 I would like to know if there is another way to do this. 我想知道是否还有另一种方法可以做到这一点。 Can someone help me on this? 有人可以帮我吗?

The MQ API is focused on things a business application needs to do. MQ API专注于业务应用程序需要做的事情。 For security and other reasons, business apps are expected to know which queues they need so there's no "inquire queue names" function as part of the API. 出于安全性和其他原因,业务应用程序应该知道它们需要哪些队列,因此没有“查询队列名称”功能作为API的一部分。

Instrumentation and admin apps are expected to have the need to do things like query the configuration of the queue manager. 预期仪表和管理应用程序需要执行诸如查询队列管理器的配置之类的操作。 The PCF and command line messages are provided for this purpose. 为此提供了PCF和命令行消息。

If the application in question is a business application, it would break the expected security model to grant it both business privileges and admin/instrumentation privileges. 如果有问题的应用程序是业务应用程序,它将破坏预期的安全模型,以向其授予业务特权和管理/仪器特权。 The MQ Admin would be correct to question why a business app needs to query the list of defined queue. MQ Admin可以正确地质疑为什么业务应用程序需要查询已定义队列的列表。

If the application in question is intended to perform instrumentation or admin tasks, then it must be granted appropriate privileges, including access to put messages onto the Command Queue. 如果有问题的应用程序打算执行检测或管理任务,则必须授予它适当的特权,包括访问将消息放入命令队列的权限。

If the app's ID is properly permissioned, access to the Command Queue can be granted without also giving away full MQ Admin access. 如果应用程序的ID得到适当的许可,则可以授予对命令队列的访问权限,而无需放弃完整的MQ Admin访问权限。 In fact, MQ Explorer has a set of roles that grant read-only access to Explorer users and those work great for instrumentation apps. 实际上,MQ Explorer具有一组角色,这些角色授予对Explorer用户的只读访问权限,这些角色非常适合仪表应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM