From the course: Spring: Messaging with JMS

Unlock the full course today

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

Message converter for XML messages

Message converter for XML messages - Spring Tutorial

From the course: Spring: Messaging with JMS

Start my 1-month free trial

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…

Contents