Spring Integration Transformer (Transform XML Messages to Java Objects) :Lab11
XML is popular way to deliver data. However, Java applications prefer to work with the
data in object form. A built-in SI transformer provides the ability to convert an XML
payload message into a message containing a Java object holding the data of the XML
message. This process is called unmarshalling transformation (an opposite process – going
from Java object to XML payload also exists and that is called marshalling). Under the
covers, the unmarshalling transformer uses JAXB technology to perform the XML to object
work. In this portion of the lab, you explore the use of a SI unmarshalling transformer.
We will use JAXB here to marshalling and un-marshalling.