Hi

Just note the FAQ[1] before creating ProducerTemplate inside a processor,
rather inject/create a single instance on startup.

[1]
http://camel.apache.org/why-does-camel-use-too-many-threads-with-producertemplate.html


On Wed, Feb 5, 2014 at 2:02 PM, Alvaro Rodriguez <alvaro.rodrig...@gmail.com
> wrote:

> Hi Muhzin
>
> To add to what Claus said... I just happened to have some similar code
> in front of me...
> Your processor overrides "process" which gets an "Exchange".
> From the Exchange you can do
>
> exchange.getContext.createProducerTemplate().sendBody("some uri",
> "some message")
>
> Check out the API for details
> Regards,
> Alvaro.
>
> On Wed, Feb 5, 2014 at 9:58 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
> > Yes using a producer template, or pojo producing. Search the web site
> > for these keywords and find the links.
> >
> > On Wed, Feb 5, 2014 at 12:22 PM, Muhzin <rmuh...@gmail.com> wrote:
> >> Hi all,
> >>
> >> I have to deal with a large data set in middle of my route. I am trying
> to
> >> process it in parts using a SEDA route with many concurrent consumer. Is
> >> there any way I can put message to a route inside a loop in my custom
> >> processor component or a bean component?
> >>
> >> Please advice.
> >>
> >>
> >> --
> >> BR
> >> Muhsin
> >
> >
> >
> > --
> > Claus Ibsen
> > -----------------
> > Red Hat, Inc.
> > Email: cib...@redhat.com
> > Twitter: davsclaus
> > Blog: http://davsclaus.com
> > Author of Camel in Action: http://www.manning.com/ibsen
> > Make your Camel applications look hawt, try: http://hawt.io
>
>
>
> --
> Álvaro Rodríguez
> ---
> Siracusa 2178/4, Montevideo, Uruguay
> e-mail / gtalk: alvaro.rodrig...@gmail.com
> twitter.com/alvrod
> Tel.:(598) 2604 2160 / 094 395 638
>

Reply via email to