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

RabbitMQ - Test Apppcation Topic


Previous Page Next Page  

Start the Pubpsher Apppcation

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


Enter message:

Start the Subscriber Apppcation

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


Waiting for messages. To exit press CTRL+C

Start another Subscriber Apppcation

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


Waiting for messages. To exit press CTRL+C

Send Message

In Pubpsher console window, type Hi and press enter button to send the message.


Enter message:
Hi

Receive Message

Verify in Subscriber console windows, the message is received in each window.


Received = Hi

Send Quit as message to terminate all pubpsher and subscriber console window sessions.

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 and Exchanges to check the status of messages depvered and bindings.

Advertisements