> You should be able to convert your ImageCollection into List
> by simply doing something like:
>
> from("activemq:requestQueue")
> .convertBodyTo(ImageCollection.class)
> .setBody(simple("${body.images}"))
> .log("${body}")
> .split(body())
>
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
by simply doing
Hi,
Thanks for replying.
> Instead of splitting ImageCollection as the body, I think you just need to
> split List as the body.
Are you suggesting that the ImageCollection class is actually
superfluous and I should use the List as the output
from the bean uploadRequestQueue instead?
Or is
Hi,
Instead of splitting ImageCollection as the body, I think you just need to
split List as the body.
On Wed, Dec 20, 2017 at 7:50 AM, Charles Berger <
charlesb.yesm...@googlemail.com> wrote:
> Hi,
>
> I'm building my first application using Camel and have a question
> about how to use a
Hi,
I'm building my first application using Camel and have a question
about how to use a splitter.
My route receives a serialized Java class which contains a private
ArrayList of a POJO and getter and setter methods for the list.
I convert the serialized class into a its Java representation and
)
.to (mongodb:insert ($.name[0])collectionname)
How do I create different routes/queues via jsonpath expression to make it
happen? assuming we will always have the same name:value pair and therefore
the same collections.
Gordon
--
View this message in context:
http://camel.465427.n5.nabble.com/question-about
it
happen? assuming we will always have the same name:value pair and therefore
the same collections.
Gordon
--
View this message in context:
http://camel.465427.n5.nabble.com/question-about-using-splitter-and-jsonpath-expression-tp5759384.html
Sent from the Camel - Users mailing list