MassTransit

时间:2015-07-25 21:26:53   收藏:0   阅读:204

http://stackoverflow.com/questions/15485317/newbie-is-a-consumer-queue-necessary-in-order-for-publishing-to-work-in-masstr

 

The following answers on masstransit-discus really helped me.

From Google Group masstransit-discuss

... The thing with MassTransit is that you don‘t actually publish to a queue, you publish to an exchange that is then set up to pass that message on to other queues that have subscribed to messages on that exchange. Since you don‘t have any consumers, no-one has expressed any interest in your message so it will simply be ignored.

So simply set up a consumer and have it listen to "rabbitmq://localhost/B". First time you run it, it will create the necessary exchanges and links between them, and your message will be passed to a queue named B.

Anders

A bus is the collection of all the exchanges, queues, and services all together. When you publish on a bus, all consumers registered on that bus will receive it.

Exchanges are the RabbitMQ implementation of making this work.

原文:http://www.cnblogs.com/aaa6818162/p/4676575.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!