Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Create a queue programmatically on clustered MSMQ 4

156 views
Skip to first unread message

Mogensen@discussions.microsoft.com Erik Mogensen

unread,
Apr 29, 2010, 10:16:03 AM4/29/10
to
On Windows Server 2003 we used a clustered command prompt to run scripts that
created MSMQ queues on the clustered MSMQ instance. We are now migrating to
Windows Server 2008 which does not allow you to run a clustered command
prompt.

We do not want to use the GUI.

I was able to create a queue on the clustered MSMQ instance by creating a C#
program and clustering it but that it is not a way forward since we want to
script the creating of queues.

How do we script creating queues on the clustered MSMQ instance?

PsychoMachine

unread,
Jun 28, 2010, 3:27:28 PM6/28/10
to
Create a C# command-line program that creates MSMQ queues and applies
permissions. Have it read in an XML file that says what to do. Call this
program "ClusterUtil.exe".

Put ClusterUtil.exe on the C: drive, along with the XML file that specifies
what queues to create and permissions to apply. Now create a generic
application resource that runs ClusterUtil.exe. Bring the resource online,
then once it has stopped, remove the resource.

Creating, starting, waiting, and removing cluster resources can all be done
programatically. This is how I do it in my product installer.

0 new messages