I have different environments for my application (Dev -> Test -> Prod), and I'm using MSMQ.
I also have the name of the queues (they are remote queues) I use via config files, in the following format:
FormatName:Direct=SERVER_NAME\Private$\MY_QUEUE
My problem is that SERVER_NAME is different in the different environments, and I'd like to delegate that problem to the server (ie: for databases I have aliases with the same name in all 3 servers, and they each point to the actual db server)
I tried adding the queue server to the hosts file, but it failed with the following error:
The queue does not exist or you do not have sufficient permissions to perform the operation.
I tried FormatName:Direct
, FormatName:OS
, and FormatName:TCP
Any help (workaround, new ideas, how to make that work) would be highly appreciated.
The objective is to have a single config file that would work in all environments.