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 then restore a queue with messages

Post new topic  Reply to topic
 backup then restore a queue with messages « View previous topic :: View next topic » 
Author Message
ping master
PostPosted: Thu Aug 07, 2003 9:17 am    Post subject: backup then restore a queue with messages Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 07, 2003 9:26 am    Post subject: Re: backup then restore a queue with messages Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » backup then restore a queue with messages
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.