Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to Backup/Restore MSMQ queues ?

Posted on 2002-05-19
5
Medium Priority
?
1,510 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
  • 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 150 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

963 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