Hi, The point is that to split object message body using Splitter DSL it needs to be either Collection, Iterator, or array. ImageCollection is a custom class so there's no way for Camel to know how to split it.
You should be able to convert your ImageCollection into List<SingleImageModel> by simply doing something like: from("activemq:requestQueue") .convertBodyTo(ImageCollection.class) .setBody(simple("${body.images}")) .log("${body}") .split(body()) .log("${body}") .to("bean:downloadImageQueue") .marshal().json(JsonLibrary.Jackson) .to("activemq:ftpQueue"); On Wed, Dec 20, 2017 at 5:07 PM, Charles Berger < charlesb.yesm...@googlemail.com> wrote: > Hi, > > Thanks for replying. > > > Instead of splitting ImageCollection as the body, I think you just need > to > > split List<SingleImageModel> as the body. > > Are you suggesting that the ImageCollection class is actually > superfluous and I should use the List<SingleImageModel> as the output > from the bean uploadRequestQueue instead? > > Or is there a way in the route that I can call the method > ImageCollection.getImages() method to pass into the split? > > Thanks, > > Charles. >