Reputation: 35953
Our MQ service will be moved to outside of local server. I can see current destination queue address as ".\Private$\eventQueue".
What is the format of remote address for sending messages?
Upvotes: 3
Views: 1896
Reputation: 73303
From Technet:
Private queues are accessible only by Message Queuing applications
that know the full path name, the direct format name, or
the private format name of the queue, as follows:
* Path name:ComputerName\private$\QueueName.
* Path name on local computer: \private$\QueueName.
* Direct format name:: DIRECT=ComputerAddress\PRIVATE$\PrivateQueueName.
* Private format name: PRIVATE=ComputerGUID\QueueNumber.
See this article for more on queue names. One thing to watch out for is that it's not possible to tell if a remote private queue is transactional or not, and if you post with the wrong transactional option set the message is discarded.
Upvotes: 4
Reputation: 72668
You can't access private queues remotely (that's why they're private). You can use the following queue name to access public queues, however:
FormatName:DIRECT=OS:<machine>\<queue>
(This works with the .NET library, I'm not sure about the native library)
Upvotes: -2