rabbitmq-tester

License

Java CI with Maven

Proof HTML

Auto Assign

About

Tool for testing RabbitMQ instance with sample publisher and consumer of text messages.

Program Arguments

queue-name "rabbit-mq-instance-url" "message-to-send-receive"

Technologies


Quick Start

Run RabbitMQ locally

docker run -d --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management

Build Project

./mvnw clean install

Run Main Process

java -jar target/rabbitmq-pub-cons-tester-3.0.3-RELEASE.jar \
  net.ironoc.mq.test3 "amqp://localhost" "Hello There"
Console Out
Queue name is net.ironoc.mq.test3
Connection URI is amqp://localhost
Message Content is Hello There
Java Queue - Message RabbitMQ Java Sent: 'Hello There'
{N|T} Waiting for messages.
Java Queue - Message Received 'Hello There'

Login as guest:guest to verify RabbitMQ instance

http://localhost:15672/

rabbit-mq-ui-local.png


JS Tool for testing queues in parallel

Run Consumer
cd src/main/resources/js
npm install amqplib
node consumer.js

Run Producer

cd src/main/resources/js
node producer.js

docker-messages