AMQP test tools

Camel/Fuse AMQP client

git clone

# Fuse 7.6 on Spring Boot 2.x
git checkout spring-boot-camel-amq-7.6.0.fuse-sb2-760045-redhat-00001


This ActiveMQ testing tool is a convenient CLI wrapper around the org.apache.qpid:qpid-amqp-1-0-client-jms library.

To put a message to an address, using AMQP and where the remote broker/router secured using TLS:

java -jar target/a-1.5.0-SNAPSHOT-jar-with-dependencies.jar \
    -T --amqp --broker "amqps://" \
    --put "YOYO" --user admin@router --pass admin \
  • -T switch is important - it disable the default transactional behaviour of fmtn/a.

Optionally, to fetch the remote host’s SSL certificate using openssl and place it into a local Java keystore:

echo | openssl s_client -servername ${REMOTE_HOST} -connect ${REMOTE_HOST}:443 2>/dev/null | openssl x509 > ${REMOTE_HOST}.pem

keytool -import -alias server -file ${REMOTE_HOST}.pem -keystore trust.jks