camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grafpoo <>
Subject split() not splitting
Date Thu, 10 Mar 2011 14:14:23 GMT
hi all, my first post, so assume this is a dubmb question.

running Camel 2.4 

i've set up a database ingesting route that takes in an array of
hibernate-mapped objects, splits them, and sends the result to one of
several hibernate endpoints (one per mapped object). so the body coming in
is already a list, i just need to split it and send each data object on to a
choice route.

it looks like this
		.when().groovy("request.body instanceof").to("")
		.when().groovy("request.body instanceof").to("")
		.when().groovy("request.body instanceof").to("")
the problem is that split doesn't seem to be splitting the body. i have
stuck in a couple of loggers, and can see that the body heading into split
is an ArrayList of my data objects. but all i get when passing in an array
of 2 of these is execution of the "otherwise", echoing back my array.

i changed the split to add a method that reflected back a list with no
difference (none expected, to be fair)

i have a vague vague notion that i had this working 9 months ago while using
camel 2.2 (which i cannot seem to find in any of the archives), but it seems
i am missing something here.

any and all suggestions welcome, thanks.

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

View raw message