Files
spring-integration-samples/basic/enricher
Gary Russell cc579226d6 INTSAMPLES-127 Polishing
- PR Comments
- Switch to Jackson2
- Fix oxm config

Polishing

INTSAMPLES-127 Update to SI 4.0.0.RC1

INTSAMPLES-127 Remove Servlet Dependency

travel sample; see INT-3350.

INTSAMPLES-127 Update Samples to SI 4.0.0

JIRA: https://jira.spring.io/browse/INTSAMPLES-127

Created `maint` branch for ongoing SI 3.0.x samples.
2014-04-16 20:45:34 +03:00
..
2014-04-16 20:45:34 +03:00
2012-03-17 17:24:56 -03:00

Spring Integration - Enricher Sample

Overview

This sample demonstrates how the Enricher components can be used.

Getting Started

You can run the sample application by either

  • running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)
  • or from the command line execute:
    • mvn package
    • mvn exec:java

This example illustrates the usage of the Content Enricher.

Once the application has started, please execute the various Content Enricher examples by

  • entering 1 + Enter
  • entering 2 + Enter
  • entering 3 + Enter

3 different message flows are triggered. For use-cases 1+2 a User object containing only the username is passed in. For use-case 3 a Map with the username key is passed in and enriched with the User object using the user key:

  • 1: In the Enricher, pass the full User object to the request channel.
  • 2: In the Enricher, pass only the username to the request channel by using the request-payload-expression attribute.
  • 3: In the Enricher, pass only the username to the request channel, executing the same Service Activator as in 2.

Resources

For help please take a look at the Spring Integration documentation:

http://www.springsource.org/spring-integration