[英]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.