nservicebus

What does “IsTransactional” in NServiceBus mean?

筅森魡賤 提交于 2019-12-11 05:36:06
问题 I am creating a web application that is going to send messages using NServiceBus, and also write to a database. I want this to be an atomic operation, i.e. a transaction, so I wrap the code in a using new TransactionScope() statement. When configuring NServiceBus you can call the IsTransactional-method. When do I pass 'false' to this method, and when is 'true' appropriate? 回答1: IsTransactional(true) mean that all incoming messages will be processed within a transactionscope http://docs

NServicebus publishing event - recieves empty message

天大地大妈咪最大 提交于 2019-12-11 04:24:01
问题 I keep recieving the following message from my denormalizer host after publishing an event in my domain: 2011-07-22 14:18:32,374 [Worker.5] WARN NServiceBus.Unicast.UnicastBus [(null)] <(null)> - Received an empty message - ignoring. I am just doing this with jolivers eventstore: return Wireup.Init() .UsingRavenPersistence("EventStore", new DocumentObjectSerializer()) .UsingAsynchronousDispatcher() .PublishTo(new DelegateMessagePublisher(c => container.Resolve<IPublishMessages>().Publish(c)))

How do I test that my ConfigureHowToFindSaga is working in NServiceBus?

a 夏天 提交于 2019-12-11 03:43:03
问题 I realized today, the hard way, that the saga testing doesn't uses the ConfigureHowToFindSaga . This results in "Saga not found" exception showing up in production since my test doesn't cover the mapping, which I think it should. I have created a really simple example saga illustrating the problem: public class MySpecialSaga : Saga<MySagaData>, IAmStartedByMessages<StartMessage>, IHandleMessages<NextMessage> { public void Handle(StartMessage message) { Data.SagaId = message.Id; Console

NServiceBus endpoints looking for RavenDB for timeouts after upgrading 3.0.3 -> 3.2.2

醉酒当歌 提交于 2019-12-11 02:13:17
问题 Using NuGet I upgraded all the NServiceBus references in a project from 3.0.3 to 3.2.2 For the 4 services in this solution I also gave them references to NServiceBus.Host from NuGet I deployed the binaries to a test environment, and the services now startup but then fail after some time with the error below. Is there some additional configuration required in 3.2? Unhandled Exception: Magnum.StateMachine.StateMachineException: Exception occurr ed in Topshelf.Internal.ServiceController`1[

Why does a windows service, hosting an NserviceBus endpoint in NServiceBus.Host.exe, fail to start when there are NO errors reported for the exe?

人走茶凉 提交于 2019-12-11 01:59:27
问题 To be clear there are no Errors for the hosted service, just a generic Windows service error. The error message says: Error 1053: The service did not respond to the start or control request in a timely fashion. If I run NServiceBus.Host explicitly (where the windows service is installed) I am presented with relevant messages indicating a successful "spinning up" of the end point, and, in fact, I can see subscription message(s) are persisted into a relevant private MSMQ queue and the exe then

Do MassTransit or nServiceBus support MSMQ over HTTP transport?

自古美人都是妖i 提交于 2019-12-11 01:26:53
问题 I understand it's available since MSMQ 3.0, is it available via any of the .NET ESBs? Is this possible with other MQ transports (ActiveMQ, etc)? Thanks, E. 回答1: NServiceBus use msmq as its main transport but does not support the http option for Msmq. Can you elaborate on what you're trying to achieve? Perhaps the NServiceBus gateway component is what you need? http://docs.particular.net/nservicebus/gateway/ Hope this helps! 回答2: MassTransit does not support MSMQ over HTTP in any way. RabbitMQ

RavenTimeoutPersistence error when starting NserviceBus.host

北城以北 提交于 2019-12-11 01:26:00
问题 When I try & start one of my services I get this error: There is no index named: RavenTimeoutPersistence/TimeoutDataSortedByTime Stacktrace: Unhandled Exception: Magnum.StateMachine.StateMachineException: Exception occurred in Topshelf.Internal.ServiceControlle r 1[[NServiceBus.Hosting.Windows.WindowsHost, NServiceBus.Host, Version=3.2.0.0, Culture=neutral, PublicKeyToken=9fc3864 79f8a226c]] during state Initial while handling OnStart ---> System.Exception: Exception when starting endpoint,

How can SQL Server 2012 (or SSIS) notify NServiceBus upon completion of a task?

我与影子孤独终老i 提交于 2019-12-10 16:44:39
问题 We have some very long running ETL packages (some run for hours) that need to be kicked off by NServiceBus endpoints. We do not need to keep a single transaction alive for the entire process, and can break it up into smaller transactions. Since an NServiceBus handler will wrap itself in a transaction for the entirety, we do not want to handle this in a single transaction because it will time out--let alone create issues with locking in the DBMS. My current thoughts are that we could spawn

Does a CQRS project need a messaging framework like NServiceBus?

有些话、适合烂在心里 提交于 2019-12-10 15:33:46
问题 The last 6 months learning curve have been challenging with CQRS and DDD the main culprits. It has been fun and we are 1/2 way through our project and the area I have not had time to delve into is a messaging framework. Currently I don't use DTC so there is a very good likely hood that if my read model is not updated then I will have inconsistency between the read and write databases. Also my read and write database will be on the same machine. I doubt we will ever put them on separate

NServiceBus error queues in Azure

笑着哭i 提交于 2019-12-10 11:46:41
问题 I'm trying to setup NServiceBus in Azure. During local development I am using the storages queues and when deployed in the cloud I am using the Azure Service Bus. For some reason when an error occurs, messages are not moved to the error queue. In fact, the error queue isn't even created. In my Web.config file I have the following configuration: <MessageForwardingInCaseOfFaultConfig ErrorQueue="myApp-errors"/> When configuring NServiceBus I call: .MessageForwardingInCaseOfFault() When a