”;
Start the Producer Application
In eclipse, right click on the Producer.java source, and select Run As → Java Application. Producer application will start running and you”ll see the output as follows −
Enter message:
Start the Consumer Application
In eclipse, right click on the Consumer.java source, and select Run As → Java Application. Consumer application will start running and you”ll see the output as follows −
Waiting for messages. To exit press CTRL+C
Send Message
In Producer console window, type Hi and press enter button to send the message.
Enter message: Hi
Receive Message
Verify in Consumer console window, the message is received.
Waiting for messages. To exit press CTRL+C Received = Hi
Send Quit as message to terminate the producer window session and terminate client window session.
Verification
Now open http://rabbitmq:15672/ in your browser. It will ask for credentials. Use guest/guest as username/password and it will load the RabbitMQ admin console where you can check Queues to check the status. It will show messages enqueued and delivered.
”;