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.
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.
The benefit of this chapter ...