惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy & Cybersecurity Law Blog
V
V2EX
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
Kaspersky official blog
S
Secure Thoughts
T
Tenable Blog
Security Latest
Security Latest
The Cloudflare Blog
S
Security @ Cisco Blogs
H
Heimdal Security Blog
aimingoo的专栏
aimingoo的专栏
TaoSecurity Blog
TaoSecurity Blog
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
IT之家
IT之家
Latest news
Latest news
The Hacker News
The Hacker News
C
Check Point Blog
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
S
Security Affairs
S
Securelist
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
A
About on SuperTechFans

博客园 - Dansin

Asp.net发送邮件的两种方法 PS合成人物图像 PS进行照片简单处理 SQL Server2005维护计划中删除历史备份 宝宝起名 微软KB974571补丁会使LCS2005变成评估板,报已过期无法使用 2009年度工作总结 两台笔记本无线共享上网图解 转发:用Web Service上传文件 JS调用Vb Script 完成日期的计算 - Dansin Biztalk 实例之 传输文本文件 BizTalk2004安装配置 将程序集安装到全局缓存GC中的命令 如何改变bizTalk的并发线程数? 三篇好文章 Hands-on Labs for WWF Release Candidates Biztalk采用Http方式接收数据配置方式 BizTalk调用.net程序,找不到程序集的解决办法 BizTalk调用WebService的权限设置
MSMQ适配器的配置说明(转载) - Dansin - 博客园
Dansin · 2006-11-01 · via 博客园 - Dansin

 MSMQ适配器的地址格式:

MSMQ://FORMATNAME:Direct=tcp:192.168.6.16\private$\QueueName

对于IMSMQQueueInfoPathName这个属性,它只接受这样的语法:

"myComputer\myPublicQueue"

"otherComputer\otherPublicQueue"

"myComputer\Private$\myPrivateQueue"

".\myPublicQueue"

".\Private$\myPrivateQueue"

而不接受这样的IP标示:

xxx.xxx.xxx.xxx \private$\yourqname

因为并没有可供使用的语法指明这个地址是IP地址,所以MS不支持这种写法,会返回错误MQ_ERROR_ILLEGAL_PATHNAME (C00E0014)

对于FormatName这个属性,它才接受你的各种各样DIRECT语法:

Direct=tcp:MyMachineHostName \private$\yourqname

Direct=tcp:xxx.xxx.xxx.xxx \private$\yourqname

               PUBLIC=QueueGUID

               DIRECT=Protocol:ComputerAddress\QueueName

               DIRECT=OS:ComputerName\private$\QueueName

PRIVATE=ComputerGUID\QueueNumber

因为它可以显式指明使用的协议。

如果你不小心给FormatName这个属性赋值

MyMachineHostName \private$\yourqname,那就会得到

MQ_ERROR_ILLEGAL_FORMATNAME (C00E001E)这个错误。

同样,如果你不小心给PathName这个属性赋值

direct=tcp:172.xx.xx.xx\private$\YourMQName,那就会得到

MQ_ERROR_ILLEGAL_PATHNAME (C00E0014)这个错误。

这两个属性真的不一样啊,不要搞混了。

我的其他建议:

如果你本机的MSMQ安装模式是Workgroup模式:

只能使用.\private$\ YourPrivateMQName来访问本机的私有MSMQ队列。

而不能使用.\ YourPublicMQName,即本机的公用队列你无法访问,只有在AD模式下才可以访问公用队列。

谨慎起见,我进一步建议你不要在FormatName属性上使用DIRECT语法,因为:

MSMQ1.0并不是完全支持DIRECT语法,MSMQ2.0才支持的。

最好用PathName属性。

所以,一般请这么使用PathName

MyMachineHostName \ YourPublicMQName

除非你要在Internet上访问远端MSMQ,再使用FormatName属性指定对方IP地址。