How to send multiple modified messages to one endpoint in camel? -


in application query service based on given data structure identification numbers. each returned identification number want sent mail message based on query data enriched identification number same recipient:

from("direct:querysource") .enrich("direct:executequeryids", new idwithdataaggregator()) // here stuck - want send original received message  // querysource n (executequeryids) times enrich iterating // on executequeryids result .to("smtp://...") .end() 

i tried split messages using split based on message header, inside split obtian splitted header value body, not original message. using split call aggregator second parameter neither worked well, because second exchange null.

i experimented loop constructs, feel there should more convenient , idomatic way of doing it.

thanks in advance!

if want turn single message multiple messages still want use splitter. want this:

from(start)  .split(). method(splitbean.class, "splitmessage")  .to(finish); 

you can pass in headers bean method , manually split messages way.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -