Solved

how to Backup/Restore MSMQ queues ?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now