This module is designed to provide a simple web interface to allow a test client, such as Postman, or SoapUI to send messages to an RabbitMQ instance.
It is a spring boot application.
Hostnames, and virtual hosts are configured in the application.yml.
spring:
rabbitmq:
host: rabbitmqhost
port: rabbitmqport (5672)
username: rabbitvhostusername
password: rabbitvhostuserpassword
listener:
simple:
missing-queues-fatal: true
virtual-host: vhostvalue
mvn springboot:run
This utility is invoked by a HTTP POST request with the http request paramaters specifing the queue names to send the message to. Place a Json payload that is to be sent, within the HTTP Post request
http://localhost:8086/rabbit/send?writeQueueName=yourRequestQueue&receiveQueueName=yourResponseQueue
http://localhost:8086/rabbit/write?queueName=yourqueue
http://localhost:8086/rabbit/monitor?queueName=yourqueue
http://localhost:8086/rabbit/uploadtoqueue?queueName=mytestq[&mode=text|fixed-binary][&len=choplength]
queueName is the rabbitMq name to send to.
text is the default mode.
fixed-binary is for fixed-length binary files.
len is only required for fixed-binary as it specifies the choplength.
content-type must be "multipart/form-data" for binary mode, and text file processing mode.
content-type must be "application/json" to treat the file as a single Json record.
http://localhost:8086/rabbit/uploadtoexchange?exchangeName=myexchange&routingKey=myRoutingKey[&mode=text|fixed-binary][&len=choplength]
exchangeName is the rabbitMq exchange to send to.
routingKey is the rabbitMq routing key pattern to send to
text is the default mode.
fixed-binary is for fixed-length binary files.
len is only required for fixed-binary as it specifies the choplength.
content-type must be "multipart/form-data" for binary mode, and text file processing mode.
content-type must be "application/json" to treat the file as a single Json record.