Spring Integration Transformations
No, Spring does not have Autobots, but the concept – turn something from one thing to
another thing – is provided for in Spring Integration. Spring Integration (SI) transformers
turn one type of message into another. In the world of integration, data providers and data
consumers don’t always speak the same language. So transformers provide SI applications
the means to convert messages between formats to facilitate non-homogeneous message
exchange. For example, a producer may provide information in XML format. It is the data
your application needs, but it would like that data in JSON form. A SI transformer can
perform that message conversion.
In this lab, you explore several types of SI transformers – some provided by SI out of the
box. As you have learned with other SI components, you can also create your own custom
transformer.
Specifically, in this lab you will:
- Configure and use a message payload transformer.
- Define a custom transformer.
- Explore the use of annotations to reduce SI component XML configuration.
- Examine the use of an XML to object transformer – otherwise known as an
- unmarshalling transformer