File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
src/main/java/com/iluwatar/eip/splitter Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 4040 <artifactId >camel-core</artifactId >
4141 <version >${camel.version} </version >
4242 </dependency >
43- <dependency >
44- <groupId >org.apache.camel</groupId >
45- <artifactId >camel-csv</artifactId >
46- <version >${camel.version} </version >
47- </dependency >
4843
4944 <dependency >
5045 <groupId >org.apache.camel</groupId >
Original file line number Diff line number Diff line change 77import org .springframework .context .ConfigurableApplicationContext ;
88
99/**
10+ * It is very common in integration systems that incoming messages consists of many items bundled together. For example
11+ * an invoice document contains multiple invoice lines describing transaction (quantity, name of provided
12+ * service/sold goods, price etc.). Such bundled messages may not be accepted by other systems. This is where splitter
13+ * pattern comes in handy. It will take the whole document, split it based on given criteria and send individual
14+ * items to the endpoint.
1015 *
1116 * <p>
17+ * Splitter allows you to split messages based on defined criteria. It takes original message, process it and send
18+ * multiple parts to the output channel. It is not defined if it should keep the order of items though.
1219 * </p>
20+ *
1321 */
1422@ SpringBootApplication
1523public class App {
Original file line number Diff line number Diff line change 77 * Sample splitter route definition.
88 *
99 * <p>
10+ * It consumes messages out of the <i>direct:entry</i> entry point and forwards them to <i>direct:endpoint</i>.
11+ * Route accepts messages having body of array or collection of objects. Splitter component split message body and
12+ * forwards single objects to the endpoint.
1013 * </p>
1114 *
1215 * In this example input/output endpoints names are stored in <i>application.properties</i> file.
You can’t perform that action at this time.
0 commit comments