简体   繁体   English

将 IBM iSeries 连接到 Kafka

[英]Connecting IBM iSeries to Kafka

We are trying to connect a process within our AS400 to deliver information to a database that is in SQL Server 2016. We have an Apache Kafka server running and ready.我们正在尝试在我们的 AS400 中连接一个进程,以将信息传递到 SQL Server 2016 中的数据库。我们有一个 Apache Kafka 服务器正在运行并准备就绪。 What is the best way to connect the i Series to SQL Server using Apache Kafka?使用 Apache Kafka 将 i 系列连接到 SQL 服务器的最佳方法是什么? in such a way that an RPGLE program can deliver a message subscribed to a specific topic in Kafka.以这样一种方式,RPGLE 程序可以传递订阅到 Kafka 中特定主题的消息。

Should we install something additional?我们应该安装一些额外的东西吗? are there open source options?有开源选项吗?

What should we configure?我们应该配置什么?

I suspect this should probably be closed...我怀疑这可能应该被关闭...

But, I'll throw the following out here....但是,我会在这里抛出以下内容......

There's various ways for RPG to interact with REST services RPG 有多种方式与 REST 服务交互

Rather than interact directly from the producing RPGLE program, it's likely a better idea to have the RPG drop a message on a queue and have some background process send it out.与其直接从生成的 RPGLE 程序进行交互,不如让 RPG 将消息放到队列中并让某个后台进程将其发送出去,这可能是一个更好的主意。

That background process could be all RPG, all Java, or RPG using Java classes.该后台进程可以是所有 RPG、所有 Java 或使用 Java 类的 RPG。

JTOpen, aka JT400, is the opensource version of the IBM i Toolbox for Java. JTOpen,又名 JT400,是 IBM i Toolbox 的开源版本,适用于 Java。

If for instance you wanted an all Java process to read from the queue and send a message.例如,如果您希望所有 Java 进程从队列中读取并发送消息。

You can even throw Apache Camel into the mix since it supports both a JT400 and Kalfka connector.您甚至可以将 Apache Camel 加入其中,因为它同时支持 JT400 和 Kalfka 连接器。 Here's an example repo of showing Camel running on the IBM i reading from a data queue and sending to Kalfka.这是一个示例 repo ,显示在 IBM i 上运行的 Camel 从数据队列中读取数据并发送到 Kalfka。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM