ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » [Solved] endmqm == lost messages?

Post new topic  Reply to topic
 [Solved] endmqm == lost messages? « View previous topic :: View next topic » 
Author Message
asincero
PostPosted: Thu Mar 13, 2003 11:36 am    Post subject: [Solved] endmqm == lost messages? Reply with quote

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
View user's profile Send private message AIM Address
bduncan
PostPosted: Thu Mar 13, 2003 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
asincero
PostPosted: Thu Mar 13, 2003 12:11 pm    Post subject: Reply with quote

Novice

Joined: 13 Mar 2003
Posts: 18

Thanks Brandon.

- Arcadio
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » [Solved] endmqm == lost messages?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.