• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Content Enricher pattern in Spring Integration?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using SI 2.0.03 and I was wondering is there any explicit support in SI for the Content Enricher pattern, when the message payload is the target of the enrichment?

Some googling (http://camel.apache.org/content-enricher.html) showed that when using Camel this can be accomplished with the "enrich" element element (or "enrich" method when using the dsl) and a custom AggregrationStrategy instance.

I know that SI has explicit support for message header enrichment, but I haven't seen anything targeted at the payload.
This post (http://forum.springsource.org/showthread.php?t=101639) on the Spring Forums suggest that while there is not explicit support for this pattern, that there are probably multiple approaches to accomplishing the same thing (service activator, custom/overloaded header enricher, custom transformer, etc.)

If there isn't any explicit support for payload enrichment, what approach would you recommend?
Also, are you aware if there are any plans for adding this to a future release of SI?

I used a custom transformer, but would have preferred it be more obvious that I was doing an "enrichment" and not just a transform. And while I haven't used Camel yet, I liked that their approach also allows you to retrieve the "enrichment" data via uniform constructs within the framework (ie resource endpoints).


Thanks!

Congrats on the new Pro Spring Integration book! :-)
 
author
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Arjumand,

The transformer component is for payload transformation or enrichment.

Mark
reply
    Bookmark Topic Watch Topic
  • New Topic