Thursday, October 13, 2011 4:35 PM
I have put up a new 2008 cluster and have multiple instances of MSMQ running for different clients. I am running into an issue though with creating the private queues in the cluster using a vbscript. I can create them on the local instance and I can use the script to create the clustered public queues, but not the clustered private queues. I keep getting the error "The queue path name specified is invalid." I understand that you cannot create/delete/configure queues remotely and that since this is set up in a cluster it is seeing the network name as a remote machine, however I need to know if there is any way around this. I need to create hundreds of queues per instance and already have a list of queue names. Creating all of this manually is really not an option I would like to entertain. So if anyone could help I would really appreciate it.
If it helps I am using the MSMQQueueInfo class and PathName is "clusterGroupNetworkName\private$\queueName" and it fails on MSMQQueueInfo.Create with the message above.
Thursday, October 13, 2011 5:57 PM
You need to run the script in the context of the clustered instance of MSMQ so that the private queues you wish to create are local.
PS. Or you can cheat. Private queues are based on text-based configuration files. If you copy the file from one machine to another, you can create a new queue without any programming. Have a look in the system32\msmq\storage\LQS directory. The file names are not random but are used as a lookup by MSMQ so don't change them. I'm assuming the queues are the same per instance. If so just create all the queues you need on a test machine and copy the files over. When the MSMQ service restarts, the queues will become available. Make sure the permissions are correct for the destination machine. Don't copy to an older version of MSMQ as the Signature value in the text files may be different.
Tuesday, May 01, 2012 5:04 AM
I am trying to create a few private queues on windows 2008 via VBscript but run into trouble while trying to use lookupqueue method to search and delete any existing queues and some issues while creating rules and attaching them to the triggers.
Any chance you could help out?