Apache Kafka和JMS之间的连接 [英] Connection between Apache Kafka and JMS
问题描述
我想知道Apache Kafka可以进行通信并向JMS发送消息吗?我可以在他们之间建立联系吗?例如,我在系统中使用JMS,它应该将消息发送到使用Kafka的另一个系统
I was wondering could Apache Kafka communicate and send messages to JMS? Can I establish connection between them? For example, I'm using JMS in my system and it should send messages to the other system that uses Kafka
推荐答案
回答得有点晚,但如果我正确理解要求的话.
answering bit late, but if I understood correctly the requirement.
如果要求是来自的同步消息传递 客户端-> JMS-> Kafka --->消费者 那么以下方法不是解决方案,而是解决方案(并且很可能是)的异步要求,例如:
If the requirement is synchronous messaging from client->JMS->Kafka --- > consumer then following is not the solution, but if its ( and most likely) the async requirement like:
client-> JMS | ---->卡夫卡--->消费者
client->JMS | ----> Kafka ---> consumer
然后,这将与KafkaConnect框架有关,该框架正在解决如何将不同的源和接收器与Kafka集成的问题.
then, this would be related to KafkaConnect framework which is solving the problem of how to integrate different sources and sinks with Kafka.
http://docs.confluent.io/2.0.0/connect/ http://www.confluent.io/product/connectors
所以您需要一个JMSSourceConnector.
so what you need is a JMSSourceConnector.
这篇关于Apache Kafka和JMS之间的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!