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 - Spring Tutorial
From the course: Spring: Messaging with JMS
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Spring JMS message converters3m 5s
-
(Locked)
Project work for JMS message converter4m 49s
-
Example code using Spring JMS converter7m 41s
-
(Locked)
Demonstrate app with changes6m 57s
-
(Locked)
Message converter for XML messages7m 58s
-
(Locked)
Create custom message listener with Spring5m 10s
-
(Locked)
Register custom message listener with Spring3m 49s
-
(Locked)
-
-
-