拜托,你能帮帮我吗?
有两个服务使用 NServiceBus 将消息发送到远程队列。
第一个服务位于第一个域(server1)中。第二个服务位于第二个域 ( server2 )。远程队列位于第二个域中的第三个服务器 ( server3 )。
我可以将消息从server2发送到server3。但是,当我尝试将消息从server1发送到server3时,我总是会收到此错误:
Common.Logging.ConfigurationException: The destination queue 'queue@server3' could not be found. You may have misconfigured the destination for this kind of message (Messages.Message) in the MessageEndpointMappings of the UnicastBusConfig section in your configuration file. It may also be the case that the given queue just hasn't been created yet, or has been deleted. ---> NServiceBus.Unicast.Queuing.QueueNotFoundException ---> System.Messaging.MessageQueueException: Insufficient resources to perform operation.
at System.Messaging.MessageQueue.SendInternal(Object obj, MessageQueueTransaction internalTransaction, MessageQueueTransactionType transactionType)
at NServiceBus.Unicast.Queuing.Msmq.MsmqMessageSender.NServiceBus.Unicast.Queuing.ISendMessages.Send(TransportMessage message, Address address)
--- End of inner exception stack trace ---
at NServiceBus.Unicast.Queuing.Msmq.MsmqMessageSender.NServiceBus.Unicast.Queuing.ISendMessages.Send(TransportMessage message, Address address)
at NServiceBus.Unicast.UnicastBus.SendMessage(IEnumerable`1 addresses, String correlationId, MessageIntentEnum messageIntent, Object[] messages)
--- End of inner exception stack trace ---
at NServiceBus.Unicast.UnicastBus.SendMessage(IEnumerable`1 addresses, String correlationId, MessageIntentEnum messageIntent, Object[] messages)
at NServiceBus.Unicast.UnicastBus.SendMessage(Address address, String correlationId, MessageIntentEnum messageIntent, Object[] messages)
at NServiceBus.Unicast.UnicastBus.NServiceBus.IBus.Send(Object[] messages)
两个域都位于同一个网络中。我可以从server1 ping server3,所以我不明白为什么 NServiceBus 找不到目标队列。
我尝试使用 MSMQ 直接格式来指定目标队列地址。但是 NServiceBus 不支持它。