Click here to Skip to main content
15,887,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 24-Dec-13 2:19am
v2
Comments
[no name] 24-Dec-13 7:26am    
Hopefully not, otherwise it is not a queue(?)...

1 solution

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
 
Share this answer
 
Comments
Maciej Los 24-Dec-13 8:27am    
+5!
aravind06 25-Dec-13 23:22pm    
On what basis the messages in the queues are stored
CHill60 27-Dec-13 13:16pm    
I'm not sure exactly what you mean... items are placed into a queue and come out the other end in that order. Different queuing systems will store the data in different ways. MQSeries can also employ a hub, which will distribute the messages sent in the queue to the intended recipient processes. In one sense you could say that they are stored on the basis of the time that they are placed on the queue

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900