i'm new camel , i'd use read xml file on ftp server , assynch process node element of xml.
indeed, i'll use splitter process every node (i use stream because xml file big).
from(ftp://user@host:port/...) .split().tokenizexml("node").streaming() .to("seda:processnode") .end(); then route nodeprocessor:
from("seda:processnode") .bean(lookup(mynodeprocessor.class)) .end(); i wondering if it's ok use splitter without aggregator? in case, don't need aggregate outcome of processed nodes.
i wondering if it's problem in camel have many "splitted" threads going in "dead end" instead of being aggreagated?
the examples provided camel show splitter withtout aggregator, still provide aggregationstrategy splitter. mandatory?
no perfect fine, can use splitter without agg strategy normal, splitter eip: http://camel.apache.org/splitter
if use agg strategy more eip: http://camel.apache.org/composed-message-processor.html can done splitter in camel.
Comments
Post a Comment