2010-03-19 29 views
3

我們的MQ服務將被移到本地服務器之外。我可以看到當前的目標隊列地址爲「。\ Private $ \ eventQueue」。遠程隊列的地址格式是什麼

什麼是發送消息的遠程地址的格式?

回答

4

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. 

有關隊列名稱的更多信息,請參閱this article。需要注意的一件事是,無法判斷遠程專用隊列是否是事務性的,並且如果您發佈了錯誤的事務性選項集,則該消息將被丟棄。

+0

如果你仍然有問題,請檢查此: http://stackoverflow.com/questions/12272330/sending-message-to-message-queue-on-my-machine-error-invalid-queue-path-nam – 2016-09-15 14:05:25

-2

您無法遠程訪問私人隊列(這就是爲什麼他們是私人的)。您可以使用下面的隊列名稱來訪問公共隊列,但是:

FormatName:DIRECT=OS:<machine>\<queue> 

(此作品與.NET庫,我不知道的本地庫)

+5

並非如此,如果您知道他們在那裏,可以遠程訪問私人隊列。 – stuartd 2010-03-19 11:03:35

+0

哦,你每天都會學到一些東西! – 2010-03-19 11:44:12

+5

是的,私人和公共之間的區別似乎是公共隊列發佈到活動目錄,而私人的不是。 – tzup 2010-03-20 07:41:25