|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Is there a way to flush non-persistent messages to disk |
« View previous topic :: View next topic » |
Author |
Message
|
Boyd |
Posted: Tue Jun 03, 2014 9:07 am Post subject: Is there a way to flush non-persistent messages to disk |
|
|
Novice
Joined: 06 Apr 2014 Posts: 16
|
I did an amqsput to a queue recently and then inspected the queue. I noticed that no such message was on the physical queue. Since I can amqsget the message, the message has been placed on the buffer, but not the disk.
I have been asked to vie wthe physical queue to see the message within the file. However, I can not perform this. I can not do a QM restart, as this would empty the current non-persistent messages.
Is there a way to flush the non-persistent message to the disk, so that I can view it physically (hex editor) within the queue |
|
Back to top |
|
 |
zpat |
Posted: Tue Jun 03, 2014 9:08 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Why on earth would you need to do this? I haven't needed to in the last 17 or so years I've been using MQ. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
PaulClarke |
Posted: Tue Jun 03, 2014 9:36 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Is this for security purposes ? ie. you want to see the exact format of a message should it ever make it on disk.
Well, the easiest thing to do is probably put a large message or lots of little ones. Each MQ queue has a non-persistent buffer space and until that has been used up the message won't spill to disk. So, all you need to do is fill that up. The default size has changed in the various releases I believe, or you can set it using DefaultQBufferSize. However, it's probably around 64K.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
tczielke |
Posted: Tue Jun 03, 2014 9:38 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
If you want to byte inspect the messages as they flow in and out of the queue manager, a strmqtrc with the "-d all" might be more helpful. You can see the entire message in hex in the trace. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|