代码之家  ›  专栏  ›  技术社区  ›  BlackICE

如何正确设置NServiceBus以使用远程错误队列?

  •  3
  • BlackICE  · 技术社区  · 16 年前

    2010-03-25 07:59:50103[1]错误NServiceBus.Utils.MsmqUtilities[(null)]<(空)>-无法创建队列error@C0NSERVICEBUS或者检查它的存在。处理仍将继续。 System.Messaging.MessageQueueException:队列路径名无效。 位于System.Messaging.MessageQueue.ResolveFormatNameFromQueuePath(String queuePath,Boolean ThroweException) 位于System.Messaging.MessageQueue.Exists(字符串路径) 位于NServiceBus.Utils.MsmqUtilities.CreateQueueIfNecessary(字符串queueName)

    以下是我对NServiceBus的配置设置:

        <!-- in order to configure remote endpoints use the format: "queue@machine" 
       input queue must be on the same machine as the process feeding off of it.
       error queue can (and often should) be on a different machine.  -->
    
    <MsmqTransportConfig InputQueue="ClipboardSubscriberInputQueue" ErrorQueue="error@C0NSERVICEBUS" NumberOfWorkerThreads="1" MaxRetries="5"/>
    
    <UnicastBusConfig>
        <MessageEndpointMappings>
            <add Messages="PatientFirst.Messaging" Endpoint="ClipboardPublisherInputQueue@C0NSERVICEBUS"/>
        </MessageEndpointMappings>
    </UnicastBusConfig>
    

    这是正常的预期行为,如果不是我做错了什么?

    1 回复  |  直到 16 年前
        1
  •  3
  •   Udi Dahan    16 年前

    这是正常的行为。

    推荐文章