O'Reilly logo

Clojure Recipes by Julian Gamble

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

21. Getting Started with JMS in Clojure

Messaging is used for data sources such as a news ticker. Messaging is also used in high availability architectures to distribute work across many nodes. It is useful when there is an asynchronous control flow. The Oracle standard for messaging is the JMS interface. We’re going to use it in Clojure to build a simple message flow of time-based information.

In this recipe we’ll create a new Clojure project and create a JMS queue using a Hornet library. Then we’ll pump messages onto the queue and see them appear in our output.

Assumptions

In this chapter we assume that either you’re familiar with the concept of a JMS message or you are at least willing to look it up.

Benefits

The benefit of this chapter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required