Hosting an NServiceBus subscriber in the same application as the producer.

Posted by Jack Ryan on Stack Overflow See other posts from Stack Overflow or by Jack Ryan
Published on 2010-03-17T11:07:36Z Indexed on 2010/03/17 11:11 UTC
Read the original article Hit count: 223

Filed under:

Is it possible to use NServiceBus to publish and consume messages in the same application, specifically a web application?

In the future we will almost certainly need to maintain a separate long running service to process messages generated by this application, and this is why we are hoping to use NServiceBus from the start, but right now it would be nice to just start up the consumer and the publisher when the web application starts. This will make testing and deployment far easier for us.

I presume I will need to reference the NServiceBus.Host.exe and start up the process in the global.asax, but need help on what exactly I need to call to do this.

© Stack Overflow or respective owner

Related posts about nservicebus