连接到专用远程MSMQ队列 [英] Connecting To A Private Remote MSMQ Queue

查看:93
本文介绍了连接到专用远程MSMQ队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下路径连接到远程专用MSMQ队列:

I'm trying to connect to a remote private MSMQ queue using the path:

"FormatName:DIRECT=OS:remoteMachineName\Private$\MyQueue"

并且出现以下错误:

"The specified format name does not support the requested operation. For example, a direct queue format name cannot be deleted."

我显然做错了.但是,使用本地队列确实可以.

I'm obviously doing something wrong. However this does work using a local queue.

我正在使用Spring.Net的消息.这是我的配置

I'm using Spring.Net's Messaging. Here's my config

<objects xmlns="http://www.springframework.net">
  <object id="myQueue" type="Spring.Messaging.Support.MessageQueueFactoryObject, Spring.Messaging">
    <property name="Path" value="FormatName:DIRECT=OS:remoteMachineName\Private$\MyQueue"/>
  </object>

  <object id="messageQueueTemplate" type="Spring.Messaging.Core.MessageQueueTemplate, Spring.Messaging">
    <property name="DefaultMessageQueueObjectName" value="myQueue"/>
  </object>

  <object id="messageGateway" type="My.MessageGateway, My.Assembly">
    <property name="MessageQueueTemplate" ref="messageQueueTemplate"/>
  </object>
</objects>

推荐答案

这是事务性队列吗?无法从事务队列进行远程读取.也许spring框架会尝试检查这是否是事务性队列,并且这也是仅本地队列支持的操作.

Is this a transactional queue? Remote read from transactional queue is not possible. Maybe the spring framework try to check if this a transactional queue, and this is also an operation that is supported only on local queue.

推荐使用队列的原因是写入远程队列并从本地队列读取.在msmq 4.0(Vista和Windows 2008)中,支持远程事务读取(据我所知).

The recommanded why to work with queues is to write to remote queue and read from local queue. In msmq 4.0 ( vista and windows 2008 ) remote transactional read is supported ( so I have heard).

您可以调试spring.net代码并在过程失败时查看确切的代码吗?

Can you debbug the spring.net code and see the exact code when the process fail?

这篇关于连接到专用远程MSMQ队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆