用EJB配置Kafka消费者?是否可以使用EJB为KAFKA配置MDB?
我想用Apache Kafka消息消费者替换EJB中现有的JMS消息消费者。我无法弄清楚使用EJB配置配置Apache Kafka消费者的选项。
I want to replace existing JMS message consumer in EJB with Apache Kafka message consumer. I am not able to figure out the option to configure Apache Kafka consumer with EJB configuration.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Kafka不是直接的消息解决方案(与Say RabbitMQ相当),但可以用作一个。
您将需要将JMS概念(主题,排队)转换为Kafka主题(更接近JMS主题)。
同样,鉴于消费者具有可配置/可储藏的起始偏移量,您需要为您的消费者定义这些政策。
Kafka is not a straight messaging solution (comparable to say RabbitMQ), but can be used as one.
You will need to translate your JMS concepts (topics, queues) into Kafka topics (which are closer to JMS topics).
Also given that consumers have a configureable/storeable start offset you will need to define these policies for your consumers.