Spring Integration Tutorial (Part 4) – Transformers

by | Aug 14, 2014

Part 4 – Transformers

transformer
We continue our Spring Integration tutorial and exploration of Spring Integration (SI) message endpoints today with a look at transformers.  Transformers take a message from a channel and creates a new message containing converted payload or message structure.  This allows the provider of information and the consumer of information to communicate via SI without having to settle on a common format.  XML can be transformed to JSON, JSON transformed to Java objects, etc.
XML to JSON transformation
Part 4 of 8 in our Spring Integration Tutorial looks at SI transformers – how to use the built-in transformers and how to create a custom transformer using POJOs.

 

After watching the video, you are ready to take on the challenges of Lab 4 using Spring Integration Transformers.

Lab4-Transformers

Lab 4 code files

Missed other parts of the tutorial series? Check them out using the links below.

Spring Integration Introduction

Spring Integration Tutorial (Part 1) – Understanding Channels

Spring Integration Tutorial (Part 2) – Adapters

Spring Integration Tutorial (Part 3) – Filters

Spring Integration Tutorial (Part 4) – Transformers

Spring Integration Tutorial (Part 5) – Routers

Spring Integration Tutorial (Part 6) – Enrichers

Spring Integration Tutorial (Part 7) – Service Activators

Spring Integration Tutorial (Part 8) – Gateways