CHAPTER 16

image

Messaging with Your Spring Application

In Chapter 11, you integrated your Spring application with JMS and RabbitMQ servers. In this chapter, I’ll talk more about RabbitMQ and the Spring AMQP (Advance Message Queue Protocol) module. Imagine for a moment that you are going to receive a lot of new documents and at some point you will want to classify them by extension.

An easy way to do this classification by extension is to create a RabbitMQ queue. Once the message arrives to the consumer, they get the Type and the Extension, and then based on these two properties, do some processing. Well, that sounds like the right way to do it. But ...

Get Introducing Spring Framework: A Primer now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.