Here you will find examples demonstrating Vert.x AMQP Bridge in action.
Vert.x AMQP Bridge provides AMQP 1.0 producer and consumer support via a bridging layer implementing the Vert.x event bus MessageProducer and MessageConsumer APIs. Please consult the Vert.x AMQP Bridge documentation for more information.
NOTE: These examples require a broker with AMQP 1.0 support listening at port 5672 on localhost.
For example, you could use ActiveMQ:
-
Grab the latest release from their Download Page.
-
Extract the release.
-
Run the broker using: bin/activemq start
-
Then run the examples.
-
When finished, stop the broker using: bin/activemq stop
These examples demonstrates messaging between a MessageProducer and a MessageConsumer instance.
The receiver listens on an address for incoming messages, and prints their content on arrival. The sender sends a message to that address every second.