Hi Claus, Sorry for the confusion i caused. I attempted to do a simplified model over the weekend and posted on the topic "Best Practise for (Dynamic Topic in Ear Project)", kindly provide advise if possible.
I'm thinking i sort of need a pollEnricher and a AggreatorStrategy after doing some read up, but aren't able to really try it out, and needs guidance on how to link then correctly together. i.e. I don't want the route to simply reply when there are output files, i want it only to respond if it matches the correlationID, from the various example, i saw some having a <correlation> tag when used with agreatorStrategy, but it is used with a pollEnricher, I couldnt find any example that perform correlation check, as it seems most of the example are point A->point B. e.g. from("direct:start") .enrich("direct:resource", aggregationStrategy) .to("direct:result"); i need something like from("direct:start") .enrich("direct:resource?id=${body}", aggreationStrategy) .to("direct:result"); so that in an event 3 separate events R1, R2, R3 and the response is R1, R3 R3 wont be mistaken responded to R2, as the external system also performs its own prioritzation before outputting its result. Best Regards, Zuff -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-Routing-ApplicationContext-is-null-tp5720943p5721018.html Sent from the Camel - Users mailing list archive at Nabble.com.