安裝配置MSMQ消息廣播,并驗證是否可以發送廣播消息,過程實錄。

?

1. 安裝MSMQ with broadcasting support

選擇安裝“消息隊列”,并在子選項中選擇“多播支持”一起安裝。

clipboard

2. 注冊表修改MulticastBindIP

If Message Queueing found multiple IP addresses for the local computer. Message Queueing will use the default IP address determined by the PGM driver for multicast messages. To use a different IP address, set the \HKLM\Software\Microsoft\MSMQ\Parameters\MulticastBindIP registry value to one of the following valid IP addresses: xxx.xxx.xxx.xxx.

3. 防火墻允許protocol PGM

防火墻規則中有一個預制的規則,可以選擇消息隊列進行開放。

clipboard[1]

4. 確保網卡安裝了“Reliable Multicast Protocol”

clipboard[2]

安裝步驟

1) Open Control Panel - Network Connections

2) Right click "Local Area Connection" and select Properties.

3) Click Install...

4) Select Protocol then click Add...

5) Browse the POSReady DVD for the \I386\INF folder

6) Select NETPGM.INF and choose OK. (The edit box will just display <drive>:\I386\INF, but this is expected.)

7) Select "Reliable Multicast Protocol" then click OK.

8) Stop and Restart Message Queuing Service.

9) Multicasting messages should now start working.

5. 新建消息隊列

在“Computer Management”中新建一個 Non Transactional的Private Queue。

clipboard[3]

添加上Multicast地址:

clipboard[4]

確保Security選項中,“Anonymous Logon”組具有“Send Message”的權限。新建的Private Queue 默認就會有這個權限的。

clipboard[5]

6. 測試消息廣播功能是否OK

Step 1. Open "Computer Management" -> "Message Queuing" in 146 and 147 machines. There are no messages in the Queue msmqtest.

clipboard[6]

clipboard[7]

Step 2. Send a message "146 test msg 001" by MSMQ tester tool in 146 machine.

clipboard[8]

Step 3. Check msmqtest queue messages in both 146/147 machines.

After sending this message, I can find it in msmqtest queue in 146 machine.

clipboard[9]

Also find it in 147 machine.

clipboard[10].

Step 4. Receive that message by MSMQ tester tool in 147.

Press "Receive", get nothing.

clipboard[11]

But, that message is gone in 147.

clipboard[12]