From the course: Spring: Spring Integration

Unlock the full course today

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

Transform Spring Integration messages

Transform Spring Integration messages - Spring Tutorial

From the course: Spring: Spring Integration

Start my 1-month free trial

Transform Spring Integration messages

- [Instructor] As we have learned, transformers modify a message so that it can meet the contractual or the type expectations of a consumer. Let us now build a transforming end point together. We'll initialize our project files for this lesson using git, check out, 03_03b. So our dashboard application depends on a backend rest API for client status data points. Our goal in this lesson is to leverage Spring integration, to convert raw API JSON structured data, like you typically receive from a rest API response, into our native domain business tier. Let's depart from our typical order of things and start in our service layer this time, instead of in our configuration. In line 53, that is where we're simulating a rest API call. Notice there, that we are formatting a domain object, so that we can send it into the message flow in line 59. This complexity is what we want to get rid of. What we've got for this lesson is a…

Contents