On Tue, Jan 15, 2013 at 7:55 AM, Manoj Kolhe <harddrive.ma...@gmail.com> wrote:
> Hi Claus,
>
> Thanks, I referred to the example stated on the link you have provided.
>
> Apologies to ask you a very basic question in this case:
>
>
> <choice>
>         <when>
>
>           <header>name</header>
>
>           <transform>
>             <simple>Hello ${header.name} how are you?</simple>
>           </transform>
>         </when>
>
>
> In above 'choice when' code, how to associate header with key name?
>

<header>name</header>

is evaluated as if there is a header with the key name or not, and if
there is a header, then its value is != null.


> As I executed the code provided on the link and it is always executing the
> 'choice-otherwise' segment.
>

If you run this example
http://camel.apache.org/servlet-tomcat-example.html

It outputs in the webpage how to provide a name, eg by adding ?name=Claus
to the http url in your web browser.


> Thanks in advance,
> Manoj
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Spring-XML-tp5725366p5725561.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to