拜托,你能帮助我吗?
有两种服务使用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不支持它。
答案 0 :(得分:0)
用户回答了他自己的问题:
不知道这个问题的原因是什么。我已经尝试了一切。 所有设置均有效。它在我重新启动后才开始工作 server1的