Quickly test Solace Sink connector.
Simply run:
$ ./solace-sink.sh
Solace UI is available at 127.0.0.1:8080 admin/admin
Sending messages to topic sink-messages
$ seq 10 | docker exec -i broker kafka-console-producer --broker-list broker:9092 --topic sink-messages
The connector is created with:
$ docker exec connect \
curl -X PUT \
-H "Content-Type: application/json" \
--data '{
"connector.class": "io.confluent.connect.jms.SolaceSinkConnector",
"tasks.max": "1",
"topics": "sink-messages",
"solace.host": "smf://solace:55555",
"solace.username": "admin",
"solace.password": "admin",
"solace.dynamic.durables": "true",
"jms.destination.type": "queue",
"jms.destination.name": "connector-quickstart",
"key.converter": "org.apache.kafka.connect.storage.StringConverter",
"value.converter": "org.apache.kafka.connect.storage.StringConverter",
"confluent.topic.bootstrap.servers": "broker:9092",
"confluent.topic.replication.factor": "1"
}' \
http://localhost:8083/connectors/SolaceSinkConnector/config | jq .
Confirm the messages were delivered to the connector-quickstart
queue in the default
Message VPN using CLI:
$ docker exec solace bash -c "/usr/sw/loads/currentload/bin/cli -A -s cliscripts/show_queue_cmd"
The solace commands executed in script show_queue_cmd
are:
enable
show
queue connector-quickstart
Output is:
Solace PubSub+ Standard Version 9.1.0.77
The Solace PubSub+ Standard is proprietary software of
Solace Corporation. By accessing the Solace PubSub+ Standard
you are agreeing to the license terms and conditions located at
http://www.solace.com/license-software
Copyright 2004-2019 Solace Corporation. All rights reserved.
To purchase product support, please contact Solace at:
https://solace.com/contact-us/
Operating Mode: Message Routing Node
solace> enable
solace# show
solace(show)> queue connector-quickstart
Flags Legend:
I - Ingress Admin State (U=Up, D=Down)
E - Egress Admin State (U=Up, D=Down)
A - Access-Type (E=Exclusive, N=Non-Exclusive)
S - Selector (Y=Yes, N=No)
R - Redundancy (P=Primary, B=Backup)
D - Durability (D=Durable, N=Non-Durable)
P - Priority (Y=Yes, N=No)
Queue Name Messages Spool Bind Status
Message VPN Spooled Usage(MB) HWM (MB) Count I E A S R D P
------------------------- ----------- ---------- ---------- ----- -------------
connector-quickstart
default 10 0.00 0.00 0 U U E N P D N
Note: this could also be verified manually using Solace UI
N.B: Control Center is reachable at http://127.0.0.1:9021