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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.