As described in http://camel.apache.org/bean-binding.html (which is refered
in http://camel.apache.org/walk-through-another-example.html) there is no
special method and choosing the right method (from Camel) is complicated.
The easiest POJO you could have is

public class ValidateOrder {
    public void check(String body) throws ValidationException {
        // body is the value of Exchange.getIn().getBody(String.class) and
provided by bean-binding.
    }
}

More examples on http://camel.apache.org/bean-binding.html ...


cheers
Jan

> -----Ursprüngliche Nachricht-----
> Von: scottmiles [mailto:motgu...@gmail.com]
> Gesendet: Dienstag, 8. April 2014 20:12
> An: users@camel.apache.org
> Betreff: Re: How to use CAMEL to send the acknowledgement and xml
> output to vendors on different platform ?
> 
> Thanks Willem. I was looking for something like below
> configuration(from http://camel.apache.org/walk-through-another-
> example.html). But i am not sure which method of validateOrder bean
> will be called as no specific method has been specified here. Any idea?
> 
> 
> 
> <route>
>    <from uri="jms:queue:order"/>
>    <bean ref="validateOrder"/>
>    <bean ref="registerOrder"/>
>    <bean ref="sendConfirmEmail"/>
> </route>
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-
> use-CAMEL-to-send-the-acknowledgement-and-xml-output-to-vendors-on-
> different-platform-tp5749906p5749973.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to