Author |
Message
|
paksy |
Posted: Tue Nov 04, 2003 4:08 am Post subject: Where is the Message data stored ? |
|
|
Newbie
Joined: 03 Nov 2003 Posts: 4
|
Hi,
I have defined a local queue "myLQ" with default proerties. The only change made is Persistence is set to YES. I used the API exerciser to put 10 messages to myLQ. The MQMD options specified was MQPER_PERSISTENT, other properties used were all default.
I can browse the messages using the MMC or thru amqsbcg.
I would like to know where are the messages stored on the machine. Which folder, which file...I am sure the messages would be written to the hard disk...but where ??
I opened the Q file in QUEUES folder using notepad....it didnt help much !!
Looking forward to some directions. thanks.
cheers,
Paksy. |
|
Back to top |
|
 |
mb5278 |
Posted: Tue Nov 04, 2003 4:13 am Post subject: |
|
|
Novice
Joined: 20 Oct 2003 Posts: 10
|
the messages put on the queue are still in the "Q" file buffer (since they are too small and no few to be already swapped on disk). Do not rely on this file. The complete messages are stored in the log files. |
|
Back to top |
|
 |
pgorak |
Posted: Tue Nov 04, 2003 5:16 am Post subject: |
|
|
 Disciple
Joined: 15 Jul 2002 Posts: 158 Location: Cracow, Poland
|
If only your messages are persistent, they are in the appropriate Q file. True, there is something like log buffer for persistent messages, but having no knowledge of its internal behaviour, I wouldn't assume they are held in there.
Anyway, what's written in Q files is for queue manager's use, so why would you like to meddle with this?
Piotr |
|
Back to top |
|
 |
paksy |
Posted: Tue Nov 04, 2003 6:01 am Post subject: |
|
|
Newbie
Joined: 03 Nov 2003 Posts: 4
|
hi,
No ways I would want to meddle with these files....am just curious to know where does MQ store the messages and is it possible for me to view these messages in a editor.
Also is it possible to copy the entire messages from an existing queue Q1 to a newly created queue Q2.
thanks. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Nov 04, 2003 6:10 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Both of these things are better done other ways.
There are a whole slew of programs available that make use of the BROWSE options to allow you to look at messages on a queue without destroying them.
There are similarly a large set of programs that will copy messages from one queue to another. There's even a large amount of crossover between the two sets. (that is, a lot of the programs that let you view a queue will also let you copy it to another queue, and vice versa) _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
pgorak |
Posted: Tue Nov 04, 2003 6:12 am Post subject: |
|
|
 Disciple
Joined: 15 Jul 2002 Posts: 158 Location: Cracow, Poland
|
Quote: |
Also is it possible to copy the entire messages from an existing queue Q1 to a newly created queue Q2. |
It is possible. Perhaps it isn't a clean way of doing it, but you can replace a given Q file with another one. Have a look at
http://www.mqseries.net/phpBB2/viewtopic.php?t=11310
Piotr |
|
Back to top |
|
 |
Leafar |
Posted: Tue Nov 04, 2003 6:14 am Post subject: |
|
|
 Acolyte
Joined: 03 Apr 2003 Posts: 74 Location: Buenos Aires
|
paksy wrote: |
hi,
No ways I would want to meddle with these files....am just curious to know where does MQ store the messages and is it possible for me to view these messages in a editor.
Also is it possible to copy the entire messages from an existing queue Q1 to a newly created queue Q2.
thanks. |
In Unix the messages are stores in /var/mqm/log/QMGR/active/S0000000.LOG and is not a text file.
You can see the all the messages stored with the strings command.
To copy/move messages try support pac "MA01 MQSeries Q program ".
http://www-3.ibm.com/software/integration/support/supportpacs/category.html#cat1
Saludos
Rafael |
|
Back to top |
|
 |
|