Author |
Message
|
nylecaj |
Posted: Sun Apr 08, 2007 8:26 pm Post subject: Unable to get MQ message |
|
|
Newbie
Joined: 08 Apr 2007 Posts: 4
|
Hi,
I would like to know what are the possible reasons why I'm unable to get MQ message given the right queue and this is not the first time I'm getting the MQ message from AS400.
I would like to know what happens to the messages in the MQ message queue if all/any subsystems are ended? Will the messages still in the MQ queue until I get the MQ message? Or the messages in the MQ queue will be lost?
Any advice will be greatly appreciated!
Thanks and Regards,
Buru. |
|
Back to top |
|
 |
Mensch |
Posted: Sun Apr 08, 2007 11:40 pm Post subject: |
|
|
Disciple
Joined: 17 Jul 2005 Posts: 166
|
Non Persistent messages are lost and Persistent messages are logged in hard drive. _________________ Thanks and Regards ,
Mensch |
|
Back to top |
|
 |
Mensch |
Posted: Sun Apr 08, 2007 11:43 pm Post subject: |
|
|
Disciple
Joined: 17 Jul 2005 Posts: 166
|
|
Back to top |
|
 |
nylecaj |
Posted: Sun Apr 08, 2007 11:55 pm Post subject: |
|
|
Newbie
Joined: 08 Apr 2007 Posts: 4
|
Thanks alot Mensch for the above link!
After reading the above link that you have posted, can I confirm with you that under normal cases if messages are still in the queue, if I end and start the subsystems my messages in the queue will not exist anymore?
Kindly advise.
Thanks and Regards,
Buru. |
|
Back to top |
|
 |
Mensch |
Posted: Mon Apr 09, 2007 12:03 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2005 Posts: 166
|
If you restart your Queue manager hosting your queues or restart mqseries services you will loose Non Persistent messages . _________________ Thanks and Regards ,
Mensch |
|
Back to top |
|
 |
nylecaj |
Posted: Mon Apr 09, 2007 12:28 am Post subject: Unable to get MQ message : Non Persistant Messages |
|
|
Newbie
Joined: 08 Apr 2007 Posts: 4
|
Mensch wrote: |
If you restart your Queue manager hosting your queues or restart mqseries services you will loose Non Persistent messages . |
Sorry Mensch, one last question, I don't really understand what does it mean by Non Persistant messages and Persistant messages? I always think that as long as we put the message into the AS400, it should be there unless we issued a Get request to retrieve the message only then it will be gone from the message queue?
Many thanks again for your advice.
Regards,
Buru. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 09, 2007 12:32 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The exact difference between persistent messages and non-persistent messages is that non-persistent messages will NOT be there after restart.
(except for a few specific circumstances, don't worry about those.)
Persistence is something that is set on each individual message, and controlled by the application. The application can choose to delegate that decision to the MQ administrator by setting persistence to "as queue definition". _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
nylecaj |
Posted: Mon Apr 09, 2007 12:37 am Post subject: Unable to get MQ message |
|
|
Newbie
Joined: 08 Apr 2007 Posts: 4
|
Thanks alot to Mensch and jefflowrey!  |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Apr 10, 2007 4:52 pm Post subject: |
|
|
Guest
|
Persistence is usually set by the programmer in the Message Descriptor.
The programmer has three choices each message put to a queue:
1. this message is persistent,
2. this message is non-persistent,
3. persistence is to be taken from the so-called default persistence attribute of the queue.
NPMCLASS(HIGH) queue attribute directs the queue manager to treat non-persistent messages in this queue as if they were persistent: don't purge them at queue manager restart. BUT NPMCLASS(HIGH) only applies if the queue manager quiesces normally. If the queue manager quiesces abnormally, the non-persistent messages might be lost. |
|
Back to top |
|
 |
|