Solved

how to Backup/Restore MSMQ queues ?

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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 …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 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.

763 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