简体   繁体   English

将消息从两个不同的应用程序(不同的JVM)发送到同一IBM MQ队列(不是主题)

[英]Sending messages from two different applications (different JVMs) to same IBM MQ queue (not topic)

是否可以将消息从两个不同的应用程序(不同的JVM)发送到同一IBM MQ队列(不是主题)?

是的,有可能将两个或多个不同的应用程序置于同一队列中。

Yes, It is possible. 对的,这是可能的。 To make sure any number of instances of an application or any number of applications to open the queue, we need to have the definition of the queue like below. 为了确保有任意数量的应用程序实例或任意数量的应用程序打开队列,我们​​需要具有如下所示的队列定义。

    dis q(SAMPLE) SHARE DEFSOPT 
    6 : dis q(SAMPLE) SHARE DEFSOPT 
   AMQ8409: Display Queue details. 

   QUEUE(SAMPLE) TYPE(QLOCAL) 
   DEFSOPT(SHARED) SHARE

SHARE - will allow any number of instances of an application to access the queue at a time. SHARE-将允许应用程序的任意数量的实例一次访问队列。 DEFSOPT(SHARED) - Any number of applications can access the queue at a time. DEFSOPT(SHARED)-任意数量的应用程序一次可以访问队列。

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

相关问题 在同一台计算机上为不同的应用程序运行多个jvm - Running multiple jvms for different applications in same machine 同时从不同应用程序订阅同一主题时,未收到MQTT保留的消息 - MQTT Retained messages not received when subscribing same topic from different applications at the same time Java IBM MQ Client已连接但未从队列中获取消息 - Java IBM MQ Client connected but not getting messages from queue 如何将消息发送到IBM MQ集群中不同队列管理器和主机名中托管的不同队列 - How to send message to different Queue hosted in different queue manager and hostname in IBM MQ cluster Rabbit MQ 向同一个应用的两个实例发送消息 - Rabbit MQ sending messages to two instances of the same app 如何区分来自同一队列的不同JMS文本消息? - How distinguish different JMS text messages from the same queue? RabbitMq:使用同一个队列消费不同的消息 - RabbitMq: Consume different messages using the same queue 一台具有两个不同JVM的机器上的Quartz? - Quartz on one machine with two different JVMs? 在两个不同的 JVM 中测试通信软件 - Testing communications software in two different JVMs 2 个具有相同组 ID 的不同消费者应用程序实例使用来自同一主题的消息 - 2 different consumer application instances with the same group id consuming messages from the same topic
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM