Solved

how to Backup/Restore MSMQ queues ?

Posted on 2002-05-19
5
1,413 Views
Last Modified: 2008-02-01
Hi,

I would like to iterate all queues on one computer and save their names and properties in a file so I can create them later.
In order to start the process, I have to get some kind of cursor to iterate through all of the queues. How's that possible ?
Or if any of you guys have another idea ...

0
Comment
Question by:gilad111397
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 49

Expert Comment

by:DanRollins
ID: 7020241
what queues?

-- Dan
0
 

Author Comment

by:gilad111397
ID: 7020843
public in this case.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7020868
This looks promising:
The MSMQ Component Set
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnprodcom/html/themsmqcomponentset.asp

The sample code there uses LookupQueue, passing in empty Variant for all params.  That seems to return a MSMQQueueInfos that can be used to enumerate the queues.  It sounds like you already know how to peek through the queues to get the messages.

-- Dan

0
 

Author Comment

by:gilad111397
ID: 7021225
Looks ok, I'll go check it.
Out of curiosuty, got something for private as well ?
0
 
LVL 49

Accepted Solution

by:
DanRollins earned 50 total points
ID: 7022341
I don't know anything about MSMQ.  I did trewad this though..

Private queues are registered on the local computer and typically cannot be seen by other applications.

which would tend to indicate that the word 'private' is used to mean 'not available to the general public' which kind of makes sense....

-- Dan
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question