You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Amar Sheth <sh...@gmail.com> on 2015/08/21 12:38:34 UTC

how to route pojo in camel

Hi,

I am new to Apache Camel,

I have an requirement were in I have to route pojo in camel and some
processing to be done.

My scenario/requirement is

I have first component , which do the DB fetch and get the records, now for
each records, call a webservice, which will return java POJO, we need to
pass this pojo to route for some processing and ftp

Pseudo Logic

from("Java Pojo").Process("Some Process").to("ftp location").

My question is how do I pass the Java Pojo in from part of the camel?

Regards,
Amar S

Re: how to route pojo in camel

Posted by Christian Müller <ch...@gmail.com>.
Something like this:

from("timer:...")
  .to("sql:...")
  .split(...)
    .convertBodyTo(...)
    .to("cxf:...")
    .to("ftp:...")
  .end();

Best,

Christian
-----------------

Software Integration Specialist

Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Member

https://www.linkedin.com/pub/christian-mueller/11/551/642

On Fri, Aug 21, 2015 at 12:38 PM, Amar Sheth <sh...@gmail.com> wrote:

> Hi,
>
> I am new to Apache Camel,
>
> I have an requirement were in I have to route pojo in camel and some
> processing to be done.
>
> My scenario/requirement is
>
> I have first component , which do the DB fetch and get the records, now for
> each records, call a webservice, which will return java POJO, we need to
> pass this pojo to route for some processing and ftp
>
> Pseudo Logic
>
> from("Java Pojo").Process("Some Process").to("ftp location").
>
> My question is how do I pass the Java Pojo in from part of the camel?
>
> Regards,
> Amar S
>