camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Splitter Question - ArrayList
Date Tue, 29 May 2012 07:15:27 GMT
And are you sure LsaResponse is a Colection / Iteratable so it can be
used for splitting?

See the splitter docs
http://camel.apache.org/splitter

And use tracer to see what goes on
http://camel.apache.org/tracer

Or write an unit test and debug the code.


On Tue, May 29, 2012 at 5:29 AM, Christopher Love
<chris@cnmconsulting.net> wrote:
> Hi all I am trying to split an ArrayList and send it to a queue.
>
> I am not getting anything after the split.  Ideas?  What debug logging
> should I tweak?
>
> from("seda:ReloadLSADocs")
> .to("clearHeader")
> .validate(header("IGIVE_DOIT").isNotNull())
> .routeId("reload-lsa-docs")
> .to("bean:lsaRedisService?method=reloadLsaDocs")
> .split(body(LsaResponse.class))  // after this nothing
> .throttle(100)
> .to("activemq:reloadLsa?concurrentConsumers=1000&asyncConsumer=true");
>
> from("activemq:reloadLsa?concurrentConsumers=1000&asyncConsumer=true")
>  .to("log:com.igive.loaded?showBody=true")
>  .routeId("reload-lsa-docs-queue")
>  .to("log:com.igive.loaded?showBody=true")
>   .to("bean:redisRssService?method=lpushLsaHtml");
>
> Thanks
>
> Chris
>
> --
> Chris Love
> clove@cnmconsulting.net
> http://www.cnmconsulting.net
> Calendar: http://j.mp/cnmCalendar
> Follow me on twitter: @chrislovecnm



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message