English 中文(简体)
RabbitMQ - Test Application
  • 时间:2024-09-17

RabbitMQ - Test Apppcation


Previous Page Next Page  

Start the Producer Apppcation

In ecppse, right cpck on the Producer.java source, and select Run As → Java Apppcation. Producer apppcation will start running and you ll see the output as follows −


Enter message:

Start the Consumer Apppcation

In ecppse, right cpck on the Consumer.java source, and select Run As → Java Apppcation. Consumer apppcation 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 cpent 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 depvered.

queue Advertisements