Solved

how to Backup/Restore MSMQ queues ?

Posted on 2002-05-19
5
1,373 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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 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 learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

789 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