Author |
Message
|
ping master |
Posted: Thu Jan 30, 2003 5:47 am Post subject: backup msgs in Queue on windows |
|
|
 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 |
|
 |
bower5932 |
Posted: Thu Jan 30, 2003 6:14 am Post subject: |
|
|
 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 |
|
 |
ping master |
Posted: Thu Jan 30, 2003 10:18 am Post subject: |
|
|
 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 |
|
 |
yaakovd |
Posted: Thu Jan 30, 2003 10:44 am Post subject: |
|
|
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 |
|
 |
ping master |
Posted: Thu Jan 30, 2003 11:26 am Post subject: |
|
|
 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 |
|
 |
yaakovd |
Posted: Thu Jan 30, 2003 12:05 pm Post subject: |
|
|
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 |
|
 |
ping master |
Posted: Thu Jan 30, 2003 12:44 pm Post subject: |
|
|
 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 |
|
 |
ping master |
Posted: Thu Jan 30, 2003 12:57 pm Post subject: |
|
|
 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 |
|
 |
yaakovd |
Posted: Thu Jan 30, 2003 1:19 pm Post subject: |
|
|
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 |
|
 |
|