nservicebus

Check number of messages in input queue

為{幸葍}努か 提交于 2019-12-13 02:29:29
问题 Is this possible to get the number of messages inside my InputQueue using NServiceBus and do I need to bypass it and use native MSMQ interface? It's not gonna be a complete monitoring, we've got a system comprising several NSB components and they're monitored through the usage of Windows performance counters. What I'm trying to achieve is just a simple health check -> sending a NSB message to a component, its response is to contain let's say DB access status and number of MSMQ messages in its

Task processing status with a message queue

人盡茶涼 提交于 2019-12-12 13:44:30
问题 I am working on a product data importing system which downloads product data from external sources, translates it into the proper schema, and stores the results - essentially an ETL system. The core type of message the system handles is "ImportProductCommand" which specifies the product to import and the source. Import commands however, are rarely sent individually. A typical business requirement is to import a whole set of products from a given source. Currently, this is expressed as an

NServiceBus not creating queues automatically (MSMQ)

[亡魂溺海] 提交于 2019-12-12 12:25:16
问题 I'm doing the examples from the NServiceBus website (http://docs.particular.net/samples/step-by-step/) and when I run in Visual Studio everything works and the queues are created automatically (even if I delete them and re-run the solution than they get created automatically). The dev machine runs Windows 8. I have an emulated Windows 2008 RC2 - when I take my solution bin folder to the server machine and try to run NServiceBus.Host.exe it eventually crashes and the reason is: "The queue does

NServiceBus 3.2 Samples Issue

坚强是说给别人听的谎言 提交于 2019-12-12 12:02:48
问题 I am trying to run the NServiceBus sample for AsyncPages. Seems simple enough. Download the latest from NServiceBus.com Execute the bat file to install prerequisites Open the solution Press F5 Enter a number into the textbox When I do that, I get a nasty RavenDB bug (NServiceBus uses this as a Data Store). Exception when starting endpoint, error has been logged. Reason: There is no index named: dynamic/TimeoutData It seems that RavenDB didn't or can't create an index. Not sure if this is a

The dreaded “No endpoint configuration found in scanned assemblies” NServiceBus error

核能气质少年 提交于 2019-12-12 10:45:22
问题 Background: I have two NServiceBus endpoint projects in my solution. Both are NServiceBus subscribers and contain a message handler to one message. Each subscriber project handles a message from one of two different publishers. As such, one project references a messages DLL from one publisher, and the other references a messages DLL from the other publisher. Both publishers are external to my solution. Apart from the messages DLLs, both subscriber projects reference the same binaries for

How to access listview in MainWindow.xaml.cs from NServiceBus subscriber handler class

强颜欢笑 提交于 2019-12-12 05:48:50
问题 I would like to post my NServiceBus subscripiton messages derived from an EventHandler class to a ListView. The ListView is located inside the MainWindow.xaml of the WPF application. Here is my NServiceBus subscription event handler code. Note: I would like to post the event message to the ListView control in MainWindow.xaml. Any ideas? namespace EventPublisher.SubscriberDemoWPF { public class PublishTrackEventHandler : IHandleMessages<PublishTrackEvent> { public void Handle(PublishTrackEvent

What Are NServiceBus 3.0 Minimum Requirements

百般思念 提交于 2019-12-12 05:38:48
问题 I've looked everywhere and I can't seem to find any up to date information on the minimum requirements of NServiceBUs 3.0. I did find some posts that go back to 2011, are they still relevant? does anyone have a link or info on this. more specifically we're trying to install on a server with Windows 2003 sp1 on it. But as far as I can make out I need MSMQ 3.1 which was released in SP2 cheers Johnny 回答1: The minimum version of MSMQ required to run NServiceBus v3 is MSMQ 3.1. Obviously you also

Nservicebus msmq to azure queue using gateway

*爱你&永不变心* 提交于 2019-12-12 04:42:14
问题 I'm getting an error when using Bus.SendToQueues, detailed error at end of question. I have an azure queue set up with a storage account and key and I'm trying to use Bus.SendToSites to have an on premise servicebus handler using msmq send a message to the azure site. Trying to get a gateway going, as per: http://support.nservicebus.com/customer/portal/articles/859548-the-gateway-and-multi-site-distribution, and I'm using this configuration: App.config: (Am I setting up the site correctly?)

NServiceBus MessageForwardingInCaseOfFaultConfig not working as expected

独自空忆成欢 提交于 2019-12-12 03:57:23
问题 I've setup NServiceBus to forward failed messages to an error queue which is monitored by ServiceControl. Here's my config: <section name="MessageForwardingInCaseOfFaultConfig" type="NServiceBus.Config.MessageForwardingInCaseOfFaultConfig, NServiceBus.Core" /> <MessageForwardingInCaseOfFaultConfig ErrorQueue="error" /> When I send a message that fails to be processed, it's sent to the DLQ. However, I can't find a copy of this message in the error or error.log queue. When I look at the message