开发者

What is the format of remote queues' address

开发者 https://www.devze.com 2022-12-23 05:16 出处:网络
Our MQ service will be moved to outside of local server. I can see开发者_如何学JAVA current destination queue address as \".\\Private$\\eventQueue\".

Our MQ service will be moved to outside of local server. I can see开发者_如何学JAVA current destination queue address as ".\Private$\eventQueue".

What is the format of remote address for sending messages?


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.


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)

0

精彩评论

暂无评论...
验证码 换一张
取 消