|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
RFHUTILC saveq |
« View previous topic :: View next topic » |
Author |
Message
|
paustin_ours |
Posted: Mon Jan 31, 2011 12:53 pm Post subject: RFHUTILC saveq |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
Trying to write a script that would simulate a rfhutilc saveq.
I have a java sample that does MQget but that isn't the same as a save q.
Save q dumps the messages and can be replayed using the load q.
Can someone shed some light on how to go about doing this? |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jan 31, 2011 1:04 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Do an MQGet.
Determine what format you wish to use to write the MQMD out into a file.
Write code to use that format to write the MQMD to a file.
Determine how you are going to handle Message Properties - if you are going to keep them or ignore them.
If you are going to keep them, determine how you are going to write them out to a file.
Write code to write message properties out to a file.
Determine what format you wish to use to to write the remainder of the MQ Message out to a file.
Write code to use that format to write the rest of the MQ message to a file.
Then do another MQGet.
Write code to read all of the data you've just written into a file, and turn it back into an MQ message with an MQMD, message properties, and message data.
Or consider just using rfhutil, MO71 or any number of other tools that already allow you to load and unload queues. |
|
Back to top |
|
 |
JosephGramig |
Posted: Mon Jan 31, 2011 1:14 pm Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
Read about MA0T support pac |
|
Back to top |
|
 |
paustin_ours |
Posted: Tue Jul 10, 2012 4:08 am Post subject: |
|
|
Yatiri
Joined: 19 May 2004 Posts: 667 Location: columbus,oh
|
Thanks Jeff, As i was posting the question, i realized, i have to do all that and figured it didnt really warrant a post but thanks for the reply.
I am also checking out the MA0T, thanks. |
|
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
|
|
|
|