I had to implement aggregation, and spent an afternoon trying it myself - this made it clear in 36mins!! Great tutorial!! I should always check your Camel playlist before getting started 😅
Fantastic video Could you please explain how to read xml file and process the multiple record and based on the some status of the records perform specific action. How can we perform iteration and conditions on the records
Is it also possible to consume different related messages from different endpoint's which slight different message format and have completion on the second message arrived?
Yes, you can aggregate messages from different endpoints with slightly different message formats. The Aggregate EIP allows you to combine multiple related messages into a single message based on certain criteria, such as a correlation identifier. This example will help you to understand: from("direct:endpoint1") .process(new Preprocessor1()) .to("direct:aggregate"); from("direct:endpoint2") .process(new Preprocessor2()) .to("direct:aggregate"); from("direct:aggregate") .aggregate(constant(true), new MyAggregationStrategy()) .completionSize(2) // Wait for the arrival of 2 messages .to("direct:result"); from("direct:result") .process(new ResultProcessor()); // Process the aggregated message
I had to implement aggregation, and spent an afternoon trying it myself - this made it clear in 36mins!! Great tutorial!! I should always check your Camel playlist before getting started 😅
This is a good example sir ... salute..
very nice video with useful information...thanks!
Great ❤
Very Clear explanation
Спасибо! Очень полезный курс!
Fantastic video
Could you please explain how to read xml file and process the multiple record and based on the some status of the records perform specific action.
How can we perform iteration and conditions on the records
excellent example. Not related to aggregation but splitter , how to use tokenize trim option in dsl.
Nice presentation
Is it also possible to consume different related messages from different endpoint's which slight different message format and have completion on the second message arrived?
Yes, you can aggregate messages from different endpoints with slightly different message formats. The Aggregate EIP allows you to combine multiple related messages into a single message based on certain criteria, such as a correlation identifier.
This example will help you to understand:
from("direct:endpoint1")
.process(new Preprocessor1())
.to("direct:aggregate");
from("direct:endpoint2")
.process(new Preprocessor2())
.to("direct:aggregate");
from("direct:aggregate")
.aggregate(constant(true), new MyAggregationStrategy())
.completionSize(2) // Wait for the arrival of 2 messages
.to("direct:result");
from("direct:result")
.process(new ResultProcessor()); // Process the aggregated message