On the MSMQ newsgroups, Chris asked:
"I'm dropping messages into a queue on a local machine. Is there a way to easily send them to a remote server queue when they get received from the initial queue?"
Frank Boyne, our favourite MVP, proposed the following novel solution:
Before you send the message:
Now send the message to the initial queue. When it is received, a positive acknowledgement message will be sent to the queue identified by the PROPID_M_ADMIN_QUEUE property. That acknowledegement message will be a copy of the original with the Class property set to a value that indicates that it is a positive acknowledgement.
The main drawbacks to this approach are:
Great lateral thinking, Frank.