|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
backup then restore a queue with messages |
« View previous topic :: View next topic » |
Author |
Message
|
ping master |
Posted: Thu Aug 07, 2003 9:17 am Post subject: backup then restore a queue with messages |
|
|
 Centurion
Joined: 20 Sep 2002 Posts: 116 Location: USA
|
If i wanted to write a program to check for messages in a queue, if there are messages, back them up, run a script to rebuild the queue manager, then restore the messages back, how would I do this??
thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 07, 2003 9:26 am Post subject: Re: backup then restore a queue with messages |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
ping master wrote: |
If i wanted to write a program to check for messages in a queue, if there are messages, back them up, run a script to rebuild the queue manager, then restore the messages back, how would I do this??
thanks |
You would write a program that would read the queue in question, and save each message into a file or a database or somewhere with all the information you think you would need to put those messages back.
Then your program would probably execute runmqsc to rebuild the queue manager.
Then your program would go through the message store you created in the first step and put each message back on the queue in the same order.
The Repository probably has sample code for each of these steps. |
|
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
|
|
|
|