nservicebus

Pros/Cons of using BizTalk instead of NServiceBus or MassTransit

I am curious if it even makes consider BizTalk for the implementation of a pub/sub messaging architecture (basically what you can do with NServiceBus or MassTransit is all I really need). My manager tends to want to stick with frameworks provided directly from Microsoft and so as part of my due diligence as to which one to use I need to...

Wcf service waiting for a reply from NServiceBus that will never come.

Hi, Imagine the following setup: a Silverlight client tunnels a serialized command over the network using a WCF service which in turn deserializes the command and sends it using NServiceBus to a generic host which is responsible for processing the command. The WCF service has - upon sending the command - registered a callback to be invo...

NServiceBus Create Message has counter intutive concrete type implementation requiring cumbersome casts of type.

NServiceBus creates concrete implementation classes from interfaces to uses as messages. This is in theory to allow for the composition of these messages from other messages. In effect allowing for multiple inheritance. To demonstrate the inconsistent behavior I created a few test interfaces: public interface ITestBase1 { string ...

Do WF and nServiceBus overlap? How? And which to use?

Is there any overlap between MS WF and NServiceBus, in terms of workflow specifically? Is there a need to use one if the other is already in use? How well do they play together? ...

Handling NServiceBus timeouts correctly

NServiceBus provides a timeout mechanism. From nservicebus.com: The RequestTimeout method on the base class tells NServiceBus to send a message to another endpoint which will durably keep time for us ... There's a process that comes with NServiceBus called the Timeout Manager which provides a basic implementation of thi...

Win Service getting permission denied to Message Queuing

I have a WinService that can't start because NServiceBus throws "Service cannot be started. System.Messaging.MessageQueueException (0x80004005): Access to Message Queuing system is denied." This is on Windows 7 I have tried to run the service as: LocalSystem, Localservice, and NetworkService here is how I'm setting up NServiceBus p...

How do I Unit Test NServiceBus.Configure.WithWeb()?

I'm building a WCF service that receives requests on an external IP and translates them into messages that are sent via NServiceBus. One of my unit tests invokes Global.Application_Start(), which performs the configuration of the application, and then attempts to resolve the web service to validate that the container can build up all of...

NService bus message delay problem.

Yesterday I did a production simulation. The results where not good. The connection between the two servers is OK. From time to time there is huge delay, about 5-10 minutes. I send a message, two, three.. twenty and the other side do not receives them. And then boom, all messages are there and the reply is send to the sender. The other s...

NServiceBus message disappearing when sending remotely

When we use System.Messaging to send a message remotely, it work correctly i.e. I can see the message on the queue in the remore machine. However when we attempt to perform the same task i.e. send a message remotely using NServiceBus, the message does not appear in the remote queue, it seems the message disappears Note, we have the fol...

NServiceBus with Unity 2.0?

Anyone using NServiceBus 2.0 successfully with Unity 2.0? I've tried to compile sources of NServiceBus.ObjectBuilder.Unity.dll against Unity 2.0 assemblies but got several compile-time errors because of changed/deleted signatures of many object methods in new Unity. In the documentation Udi Dahan says that attaching any container is a...

Howto subscribe to a message? How does auto/manual subscribe work?

I have no trouble with the concept of publish/subscribe but I cannot get my head around the (auto)configuration. Scenario I have a front-end service (F1) which does a SEND of a command message (M1). This command message is received by a back-end (B1). B1 does some processing and then does a PUBLISH of notification message M2. Two serv...

Castle 2.5/NHibernate/Magnum/NServiceBus

Hi, Is there anyone out there having a working Castle 2.5 based stack including NHibernate (2.1.2.x), FluentNHibernate, Magnum, NServiceBus, rRhino.Security up and running built for .Net 4? thanks in advance & greetings, chris ...

How to get NServiceBUS performance Counter to Work??

Hi I've setup NServiceBus to run in production profile. I've also executed the runner.exe which "reinstalls" the performance counter "critical time" under NServicebus. But when I run my application and tries to enable the counter in perfmon, I get an "no instance" under the NServicebus critical timer. Any help one this one? Thanks. ...

Polymorphic subscriptions in NServiceBus works only for interfaces?

The simplest way to follow this explanation is a NServiceBus Pub/Sub sample which contains example of "polymorphic subscriptions" (Subscriber2). Messages: (without changes) public class EventMessage : IEvent { public Guid EventId { get; set; } public DateTime? Time { get; set; } public TimeSpan Duration { get; set; } } pu...

NServiceBus - I want AsA_Server config, but not participate in MSDTC transaction

I have a service in which I don't want to messages to purged from its input queue when the service starts up and I don't want it to participate in an MSDTC transaction. I'm configuring it's endpoint to run AsA_Server, but I can't see any way to disable starting an MSDTC transaction. I'm using the NServiceBus.Host.exe. Has anyone done ...

NServiceBus Xml Serialization issue with messages that have an IEnumerable<T> property

Hi, I'm trying to send a message with an IEnumerable property, am i correct that the NServiceBus Xml serializer cannot support this ? If i switch to using an array rather than IEnumerable it will work, if i use the binary serializer it also works My message look like this [Serializable] public class Parent : IMessage { public string...

NServiceBus error - SagaMessageHandler Failed handling message.

I'm trying to get a simple saga working so that I can handle messages during the day, then on certain criteria, set a timeout to finish processing certain messages at midnight. I've followed a couple examples to set this up. here and here. Here is configuration from the EndpointConfig.cs Kernel = new StandardKernel( new Re...

How to create a publisher within a console application

I'm just starting out with NServiceBus and have updated the PubSub sample to work with .NET 4.0 Framework. That's working perfectly ok. This runs one publisher and two subscribers within the "NServiceBus.Host.exe" environment - so it is that which takes responsibility for setting up an instance of the Bus and doing any relevant subscri...

MSMQ messages bound for clustered MSMQ instance get stuck in outgoing queues

We have clustered MSMQ for a set of NServiceBus services, and everything runs great until it doesn't. Outgoing queues on one server start filling up, and pretty soon the whole system is hung. More details: We have a clustered MSMQ between servers N1 and N2. Other clustered resources are only services that operate directly on the clus...

Showing changes in View when using CQRS & DDD with Domain Events & ServiceBus

I'm a little confused about the flow in a system using domain events to build the read model. Particularly, how do we deal with the fact that the user expects data (and its view) to change when they complete a command, but due to our system architecture (non-blocking calls to publish events) the actual database might not change before t...