From the course: Spring: Messaging with JMS
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Message converter for XML messages - Spring Tutorial
From the course: Spring: Messaging with JMS
Message converter for XML messages
- [Instructor] Previously we added mapping jackson two message converter, which serializes and deserializes messages to and from our json format. Sometimes you may need to send messages in xml format. I'll quickly demonstrate how that is done with springs other messaging converter strategy, the marshaling message converter utilizing the simplicity and power of extreme xml framework with an extreme marshaller. Now opening up our build gradle file, you'll notice that I have already added the necessary dependencies for both our extreme and our spring oxm dependency. We'll need these as we begin to add our xml marshallers and converters. With that done, we need to go back and open up our jms config class and we'll add a new bean. We'll add this bean immediately below our jackson jms converter, we'll type at bean public message converter. Again we're gonna make sure that we select the jms message converter type. We'll type in xml marshaling message converter. And I'm going to instantiate…
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)
-
-
-