|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[Solved] endmqm == lost messages? |
« View previous topic :: View next topic » |
Author |
Message
|
asincero |
Posted: Thu Mar 13, 2003 11:36 am Post subject: [Solved] endmqm == lost messages? |
|
|
Novice
Joined: 13 Mar 2003 Posts: 18
|
Is it normal for MQ to discard any messages left in the queue when you shut down the queue manager using `endmqm'?
I did the following test: using the sample program `amqsputc', I put a bunch of test messages in a queue. Using the program `amqsbcgc', I verfied that those messages were in the queue. I then shut down the queue manager using `endmqm'. After a few moments, I restarted the queue manager and used `amqsbcgc' again to view the queue and found that all the messages have disappeared! Is this normal behavior or is there a way to save any messages still in the queue?
Thanks in advance for any help you can give me.
- Arcadio |
|
Back to top |
|
 |
bduncan |
Posted: Thu Mar 13, 2003 11:44 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Arcadio-
The reason your messages disappeared is because if you look at the source code for amqsput, you'll see that it is creating non-persistent messages. This means that they aren't written to disk, so if the queue manager dies or is shut down, they go away. The reason people use them is because you can achieve higher throughput with non-persistent messages. However, you wouldn't want financial transactions or other important messages to be non-persistent, so if you changed the source code for amqsput to make the messages persistent, you'd see that they are still on the queue after restarting the queue manager. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
asincero |
Posted: Thu Mar 13, 2003 12:11 pm Post subject: |
|
|
Novice
Joined: 13 Mar 2003 Posts: 18
|
Thanks Brandon.
- Arcadio |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|