Here are some sample codes I created in the phase of learning clojure.
you can find some useful links:
Clojure Core Docs : search for keywords.
To run this code you need Leiningen.
These tutorials will work on JDK 6 through 17 (Oracle or OpenJDK).
Code examples can be executed via lein run
:
To learn more, visit Langohr documentation site.
Tutorial one: "Hello World!"
lein run -m rabbitmq.tutorials.send
lein run -m rabbitmq.tutorials.receive
Tutorial two: Work Queues
lein run -m rabbitmq.tutorials.new-task
lein run -m rabbitmq.tutorials.worker
Tutorial three: Publish/Subscribe
lein run -m rabbitmq.tutorials.receive-logs
lein run -m rabbitmq.tutorials.emit-log
Tutorial four: Routing
lein run -m rabbitmq.tutorials.receive-logs-direct
lein run -m rabbitmq.tutorials.emit-log-direct info
Tutorial five: Topics
lein run -m rabbitmq.tutorials.receive-logs-topic
lein run -m rabbitmq.tutorials.emit-log-topic info
Tutorial six: RPC
lein run -m rabbitmq.tutorials.rpc-server
lein run -m rabbitmq.tutorials.rpc-client
Here also you can find Clojure code examples from RabbitMQ tutorials.