From the course: Spring: Messaging with JMS

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create custom message listener with Spring

Create custom message listener with Spring - Spring Tutorial

From the course: Spring: Messaging with JMS

Start my 1-month free trial

Create custom message listener with Spring

- [Instructor] Previously we added message listening capabilities with the @jmslistener annotation. This should be the preferred way of listening to a QR topic with Spring. Sometimes, however, you may need more fine grain control in listening for messages on queues as well as processing them. We'll do that, but let's look at our diagram of our course project first. As you can see, we process messages for book orders from the client storefront to the queue, and then the warehouse reads those messages. We will add a warehouse processing service and a new custom JMS message listener. Let's add a processing piece of logic to demonstrate that there's something that's happened to our book order by returning a new process book order project. This will contain the date and time of processing and expected date and time of shipping. Now, as you can see, I've already provided this for you. Next, we'll create a warehouse processing service to process book orders. Again, for the sake of time, I've…

Contents