Apache Kafka 和 JMS 之间的连接 [英] Connection between Apache Kafka and JMS

查看:28
本文介绍了Apache Kafka 和 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:

客户端->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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆