DEPRECATED -> See new content in EDA/ use cases and refarch-eda-tools repository.
The system context looks like:
And the component view looks like:
See the lab instructions in the EDA main repository for a step by step tutorial covering the different connectors used in the solution.
Under the infrastructure
folder we have different docker compose files to support different test scenarios:
MQ-Kconnect-compose.yaml
for IBM MQ and the kafka connect.RabbitMQ-Kconnect-compose.yaml
for Rabbit MQ with Kafka Connect and the Store item sales generator app.
Quick set of things to do:
# Start Rabbit mq and kafka connect and the store item sale generator: under infrastructure
docker-compose -f RabbitMQ-Kconnect-compose.yaml up
# Upload the connector configuration
curl -X POST -H "Content-Type: application/json" http://localhost:8083/connectors --data "@./rabbitmq-source.json"
curl -X DELETE http://localhost:8083/connectors/RabbitMQSourceConnector
Deploy the connector with a POST to the connectors url
curl -X POST -H "Content-Type: application/json" http://localhost:8083/connectors --data "@./mq-sink.json"
# To delete the connector
curl -X DELETE http://localhost:8083/connectors/mq-sink
docker exec -ti ibmmq bash
bash-4.4$ /opt/mqm/samp/bin/amqsget INVENTORY QM1
Sample AMQSGET0 start
message <{"storeName": "NYC02", "itemCode": "IT02", "quantity": 11, "price": 113, "id": 0, "timestamp": "15-Jun-2020 23:56:30"}>
no more messages
- Be sure to have set the consumer and producer credential in the kafka connector, if not you will get a broker disconnection.
- Be sure to specify the good hostname for the MQ server:
ibmmq
when running locally - Entity 'admin' has insufficient authority to access object QM1 [qmgr].
- User ID 'app' authentication failed: add authentication info on DEV.AUTHINFO for the app user: