码迷,mamicode.com
首页 > 其他好文 > 详细

MassTransit

时间:2015-07-25 21:27:07      阅读:113      评论:0      收藏:0      [点我收藏+]

标签:

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.

MassTransit

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!