ActiveMQ:消费者/生产者为同一队列实现不同的协议? [英] ActiveMQ: consumer / producer implement different protocols for the same queue?
本文介绍了ActiveMQ:消费者/生产者为同一队列实现不同的协议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最近我正在使用ActiveMQ进入消息队列并进行实验.
I am getting into Message Queueing recently (with ActiveMQ) and experimenting.
到目前为止,我已经能够用2个用Java编写的使用者在Tcp上实现JMS来建立一个生产者.生产者将2种类型的消息发送到ActiveMQ中的队列,而在另一端,来自另一台计算机的2个使用者根据消息属性接收消息.
So far I have been able to set up one producer with 2 consumers written in Java implementing JMS over Tcp. The producer sends 2 types of messages to the queue in ActiveMQ, while at the other end, 2 consumers from a different machine pick up the messages based on the message properties.
我的问题是:
My question was:
- 消费者/生产者是否需要实现相同的协议,或者
是否有可能让生产者使用JMS和 有一个客户端(例如节点js)使用其他协议(例如AMQP)并从同一队列中收集消息?
- Does the consumer/producer need to implement the same protocol, or
Would it be possible to have a producer send messages to the Queue with JMS and have a client (like node js) use another protocol (like AMQP) and collect messages from the same queue?
谢谢您的建议,
推荐答案
这篇关于ActiveMQ:消费者/生产者为同一队列实现不同的协议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文