Guys

Thanks for the recommendations.  I took a step back and did a split on a
string, rather than an object.  Smaller payload in the activemq queues.

Claus

An ArrayList<LsaResponse> is inbound to the split.  I should not have
listed it in the split. Should split() just work, or do I need to list the
object type?

ArrayList<LsaRespons> -> splitter() -> queue -> LsaResponse

What is the syntax?

Thanks

Chris

On Tue, May 29, 2012 at 1:15 AM, Claus Ibsen <[email protected]> wrote:

> 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
> <[email protected]> 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
> > [email protected]
> > 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: [email protected]
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>



-- 
Chris Love
[email protected]
(303) 929-8509
http://www.cnmconsulting.net
Calendar: http://j.mp/cnmCalendar
Follow me on twitter: @chrislovecnm

Reply via email to