MassTransit
2015-07-25 20:57
295 查看
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.
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.
相关文章推荐
- Socket通信中的多进程编程实例
- springMybatis整合步骤
- HTTPS连接的前几毫秒发生了什么
- 终极 Shell——ZSH
- android数据存储中的文件存储学习记录
- zoj1796
- zoj1755
- HTTPS连接的前几毫秒发生了什么
- zoj1763
- 文章标题
- mybatis 缓存使用
- zoj1730
- linux 查看进程及网络
- @property与@synthesize的使用
- 省市区字典数组
- Service组件简介
- zoj1622
- 二叉树的遍历实现
- tomcat双击startup.bat闪退问题解决
- A very cool thing: Install MYSQL from source without root access on LINUX