I have been trying to get nServiceBus to work with Ninject 2.0 as the underlying IoC container unsuccessfully. While I can achieve basic integration, I've had issues with "ghost" messages getting sent to the various subscribers. I used the Autofac implementation as a template of sorts, replacing the necessary pieces with Ninject-specific code. Further, I did have to create a custom heuristic to get auto-property injection to occur.
Regardless, the behavior I see is that a first message can be published and successfully read by a subscriber; however the next message that gets published results in the message being "received" three times.
So, I am wondering: Is anyone doing anything with Ninject as the nServiceBus ObjectBuilder? Or, has anyone seen and corrected this behavior during integration of the other IoC containers currently bundled with nServiceBus 2.0 (i.e. Windsor, StructureMap or Autofac).
Edit: I did take a look at this but it didn't look complete and I thought the heuristic for property injection should be a bit different.
There is a thread discussing this on the nservicebus group, no solution yet though.
http://tech.groups.yahoo.com/group/nservicebus/message/6253
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With