Routing messages from a single data queue to multiple topics
To route messages from a single data queue to multiple topics, first point several tables to the same data queue on the IBM i side. Then configure the data queue source connector.
Point multiple tables to a single data queue
This procedure assumes that the tables you want to route are already added in InfoCDC.
-
Open the InfoCDC screen and select option 1.

-
Point the tables to a single data queue. In this example, three tables are routed to the data queue
CDCDQ301. The tablesORDERDTLandORDERHDRcurrently point toCDCDQ323andCDCDQ281. Point both of them toCDCDQ301.
- Stop the workflow for all three tables.
-
Select option 2 (Edit Columns) for the table
ORDERDTL, change the DQ name toCDCDQ301, and press F10 to update.
-
Press F10 again to apply the change.

-
Press F5 to refresh and make sure that the replication data queue is now
CDCDQ301instead ofCDCDQ323. - Repeat steps 1 to 4 for the table
ORDERHDR. - Start the workflows for all three tables.
-
Check that all three tables point to the single data queue
CDCDQ301.
Configure the data queue source connector
Configure the data queue source connector to route messages from the single data queue, including messages from different tables, to their respective topics:
- Do not set the format file name and the format file library. The connector picks them dynamically.
- Add the property
"source.multiTopic": "true". -
The connector generates the topic names dynamically, using the following naming convention:
For example:
T_INFOCDCDEM_ORDERDTL.
Sample data queue source connector configuration:
{
/* other properties are removed for brevity */
"as400.read.dataqueue.name": "CDCDQ301",
"as400.read.dataqueue.library": "INFOCDCDEM",
"source.multiTopic": "true",
"source.kafka.topic": "T"
}
With this configuration, the changes of the table ORDERDTL in the library INFOCDCDEM are published to the topic T_INFOCDCDEM_ORDERDTL.