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 » Where is the Message data stored ?

Post new topic  Reply to topic
 Where is the Message data stored ? « View previous topic :: View next topic » 
Author Message
paksy
PostPosted: Tue Nov 04, 2003 4:08 am    Post subject: Where is the Message data stored ? Reply with quote

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
View user's profile Send private message Send e-mail
mb5278
PostPosted: Tue Nov 04, 2003 4:13 am    Post subject: Reply with quote

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
View user's profile Send private message
pgorak
PostPosted: Tue Nov 04, 2003 5:16 am    Post subject: Reply with quote

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
View user's profile Send private message
paksy
PostPosted: Tue Nov 04, 2003 6:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Nov 04, 2003 6:10 am    Post subject: Reply with quote

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
View user's profile Send private message
pgorak
PostPosted: Tue Nov 04, 2003 6:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Leafar
PostPosted: Tue Nov 04, 2003 6:14 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Where is the Message data stored ?
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.