如果我将两条消息发送到IBM websphere消息队列(MQ SERIES)中的消息队列,第一条消息是否会被第二条消息覆盖? [英] If i send two messages to the message queue in IBM websphere message queue(MQ SERIES), will the first message is overwitten by second one?

查看:286
本文介绍了如果我将两条消息发送到IBM websphere消息队列(MQ SERIES)中的消息队列,第一条消息是否会被第二条消息覆盖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IBM Websphere消息队列(MQ SERIES)。通过我的代码,我正在向消息队列发送消息,在从另一端重新启动meaage之前,我正在向同一消息队列发送另一条消息,请问我的新消息会覆盖消息队列中的上一条消息??



或者它取决于时间戳或其他内容,Plesae帮助我解决这个问题。在此先感谢。

解决方案

您的问题的答案是否... MQ系列/ Websphere中的消息被覆盖。您的消息将保留在队列中,直到读取显式删除它。即使系统崩溃,这通常仍然是正确的。



由于idle63暗示这对于队列的概念非常重要!



这篇关于MQSeries基础知识的IBM白皮书 [ ^ ]可能对您有用

I am using IBM Websphere message queue (MQ SERIES).Through my code i am sending a message to the message queue and before retriving the meaage from the other end ,I am sending another message to the same message queue,Will the previous message in the message queue is overwritten by my new message??

Or it depends on the timestamp or someting else, Plesae help me out to slove this. Thanks in advance.

解决方案

The answer to your question is no ... messages in MQ Series / Websphere are not overwritten. Your message will remain on the queue until it is explicitly removed by a read. This is usually still true even if there has been a system crash.

As idle63 has implied this is quite fundamental to the concept of queues!

This IBM White paper on MQSeries basics[^] might be useful to you


这篇关于如果我将两条消息发送到IBM websphere消息队列(MQ SERIES)中的消息队列,第一条消息是否会被第二条消息覆盖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆