camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nikagra <>
Subject Question about Camel end() and endChoice() expressions
Date Mon, 06 May 2013 12:28:14 GMT

I have question about end() and endChoice() expressions. Here is how my
route looks like:
Some XML-->split-->continue processing

XML structure is like:
<person><name>V. Lenin</name><address>Soviet Russia, Moscow,

Here is part of my route:
	.end() // (*)

During XML processing I want to process parts of XML (i.e. write them to
file) and then process initial XML as a whole. I've found that depending of
what I put to line marked with asterisk message will contain either one of
splitted parts (name or address if endChoice() is put in this line) or whole
message (in case of end()).
I failed to find some exhaustive documentation on when I should use end() or
endChoice() expressions

Could you please explain such behavior?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message