IBM Sterling B2B: Configuring SB2Bi to use Kafka: Difference between revisions
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
[[File:sb2b-kafka-kowl-create-topic.png]] | [[File:sb2b-kafka-kowl-create-topic.png]] | ||
= Put and Get Files from Kafka = | |||
* [[IBM Sterling B2B: Create a Business Process to put a file in Kafka]] | * [[IBM Sterling B2B: Create a Business Process to put a file in Kafka]] | ||
* [https://github.com/ebasso/sterling-b2b-samples/tree/master/ | * [https://github.com/ebasso/sterling-b2b-samples/tree/master/business-process/using-kafka | Create a Business Process to Consume (get) a file from Kafka] | ||
= Create a Custom Protocol in SFG to use with Kafka = | = Create a Custom Protocol in SFG to use with Kafka = |
Revision as of 19:55, 1 November 2023
1) Deploy Kafka: Deploy Kafka as Container
2) Using Kwol create topics
- sb2b-kfk-inbound
- sb2b-kfk-outbound
Put and Get Files from Kafka
Create a Custom Protocol in SFG to use with Kafka
Configure Kafka Consumer Streams Adapter
The Kafka Consumer Streams Adapter connects with a Kafka queue to pull messages continuously.
- Important: key must be the filename of file.
Configuring the Adapter
1) To Create a new Adapter, open Dashboard > Deployment > Configuration
2) Search for Kafka Consumer Stream Service, and click Next
3) Define a name and description, and click Next
4) Define Bootstrap Server and Topic, and click Next
5) In Deserializer, click Next
6) In properties, click Next
7) Choose to write the file to a Mailbox, and click Next
8) Define a Mailbox to write the file , and click Next
9) Click Next and Finish