Spring Integration (Part 4) - Transformers

  • View
    1.915

  • Download
    3

  • Category

    Software

Preview:

DESCRIPTION

We continue our 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.

Citation preview

Copyright © 2014 by Intertech, Inc.

Copyright © 2014 by Intertech, Inc.

Copyright © 2014 by Intertech, Inc.

Copyright © 2014 by Intertech, Inc.

Copyright © 2014 by Intertech, Inc.

<int:object-to-string-transformer input-channel="inboundChannel" output-channel="outboundChannel“ />

<int:transformer input-channel="inboundChannel"output-channel="outboundChannel" expression="payload.toUpperCase()"/>

Copyright © 2014 by Intertech, Inc.

Copyright © 2014 by Intertech, Inc.

http://bit.ly/1hyrViM

Click here for associated labs and video

Recommended