Thanks for pointing me to toe documentation. My actual question got
clarified once I had a look into the documentation.
>From the Camel in Action book:
from("quartz://report?cron=0+0+6+*+*+?")
.to("http://riders.com/orders/cmd=received&date=yesterday")
.bean(new OrderToCsvBean())
.to("file://riders/orders?fileName=report-${header.Date}.csv");
How does Camel know which method in the OrderToCsvBean() class to invoke.
Unfortunately the book does not mentions this in Chapter 3. Not sure if it
is mentioned in Chapter 4 as I'm yet to start with Chapter 4.
Regards,
Jothi
On Thu, Aug 16, 2012 at 2:46 PM, Babak Vahdat
<[email protected]>wrote:
> Check the documentation for this:
>
> http://camel.apache.org/bean-binding.html
>
> Babak
>
> Am 16.08.12 14:32 schrieb "Joe San" unter <[email protected]>:
>
> >I have decided to use JAXB instead of xStream. My route definition looks
> >like this:
> >
> > final JaxbDataFormat jaxb = new
> >JaxbDataFormat("com.example.filexml");
> > context.addRoutes(new RouteBuilder() {
> > public void configure() {
> > from("file://my.xml").unmarshal(jaxb).bean(new
> >ProcessorBean()).to("file://my.xml");
> > }
> > });
> >
> >How do I get hold of the UnMarshalled Java Object (say Person.java) in my
> >ProcessorBean. Also, when I use a bean for Processing, how does Camel know
> >which method to invoke in that bean?
> >
> >Regards,
> >Jothi
> >
> >On Thu, Aug 16, 2012 at 1:56 PM, Joe San <[email protected]> wrote:
> >
> >> Guys,
> >>
> >> I have a route which is defined as below:
> >>
> >> from("file://my.xml").marshal().xstream("UTF-8").bean(new
> >> ProcessorBean()).to("file://my.xml");
> >>
> >> All I want to do is access the my.xml in my ProcessorBean. Where and how
> >> do I specify the Java object which will be filled with the values in the
> >> xml file?
> >>
> >> Regards,
> >> Jothi
> >>
>
>
>