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 » backup msgs in Queue on windows

Post new topic  Reply to topic
 backup msgs in Queue on windows « View previous topic :: View next topic » 
Author Message
ping master
PostPosted: Thu Jan 30, 2003 5:47 am    Post subject: backup msgs in Queue on windows Reply with quote

Centurion

Joined: 20 Sep 2002
Posts: 116
Location: USA

In MQ series version 2.1, queued up messages ready to be transmitted were held in a file MQPERS.MQI which was located in C:\programs\mqm21\qmgrs\userid, however now switching to version MQ 5.3 there doesnt appear to be a MQPERS.MQI file, what file are the messages stored in while being queued up?

thanks
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Jan 30, 2003 6:14 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I'd say that you could find them in \MQTOP\qmgrs\<qmgrname>\QUEUES\<queuename>. However, a better place to look for them would be on the actual queue by using either runmqsc (using queue's curdepth), amqsbcg, or the explorer.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
ping master
PostPosted: Thu Jan 30, 2003 10:18 am    Post subject: Reply with quote

Centurion

Joined: 20 Sep 2002
Posts: 116
Location: USA

thanks, I am actually interested in a way to backup messages in a queue to a file and have them restore them later. I see the functionality in Kolban's MQJexplorer, so it must be possible, In the old version 2.1 I used a particular queue for all outbound transactions. when the qmgr needed to be rebuilt I backed up the mqpers.mqi file to a temp dir and then after rebuilding the qmgr I put the file back and Voila`. So i know there is a file out there that hold the messages, but cant find it. I wrote several messages to a queue and checked the directory C:\Program Files\IBM\WebSphere MQ\Qmgrs\USERID\QUEUES\SYSTEM!DEFAULT!LOCAL!QUEUE, but all it had was a 2KB Q file as did all the queues..

thanks for your responses, Im hoping Kolban reads this, I have a feeling he knows exactly what I'm talking about.
Back to top
View user's profile Send private message
yaakovd
PostPosted: Thu Jan 30, 2003 10:44 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Y must set Q and/or message persistent.
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
ping master
PostPosted: Thu Jan 30, 2003 11:26 am    Post subject: Reply with quote

Centurion

Joined: 20 Sep 2002
Posts: 116
Location: USA

I am not sure what your reply is saying, can you elaborate? thanks
Back to top
View user's profile Send private message
yaakovd
PostPosted: Thu Jan 30, 2003 12:05 pm    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Open Q properties - General. Look Default persistent. It mean if you set Q "Persistent" all messages will be stored in file <MQseriesRootDir>\qmgrs\<qmgrname>\QUEUES\<queuename> ,like explaned bower5932. If you use "Not Persistent", it will depends message parameters "persistent".

Only persistent messages you can see in file!!! From this file MQ will recover messages after restart of QMgr. Message will be deleted from file after read/deletion with commit.
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
ping master
PostPosted: Thu Jan 30, 2003 12:44 pm    Post subject: Reply with quote

Centurion

Joined: 20 Sep 2002
Posts: 116
Location: USA

ahhhh, gotcha, thank you very much, I appreciate the explanation, I'm going to try it out.


Thanks again.
Back to top
View user's profile Send private message
ping master
PostPosted: Thu Jan 30, 2003 12:57 pm    Post subject: Reply with quote

Centurion

Joined: 20 Sep 2002
Posts: 116
Location: USA

worked perfect the Q file is now 16 kb when I changed the queue to persistent. Gracias
Back to top
View user's profile Send private message
yaakovd
PostPosted: Thu Jan 30, 2003 1:19 pm    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel


use some delimiter in message body if you want to extract it from file - most of information stored in hexa- unreadable format.
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » backup msgs in Queue on windows
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.