You can define a <bean> or <list> with the list of strings.

And then refer to that in <setBody> using <simple>

<setBody><simple>${ref:myList}</simple></setBody>

where myList is the id of the <bean> or <list>



On Mon, Feb 24, 2014 at 11:42 AM, nono <yan.w...@db-is.com> wrote:
> Dear All,
>
> I need to pass a List or some strings in setBody, Any hints will be more
> than welcome!
> list just contains two strings for example "userid", "password"
>
> <route id="timeTrigger">
>             <from uri="timer:test?period=120000" />
>             <setHeader headerName="operationName">
>                 <constant>start</constant>
>             </setHeader>
>             <setBody>
>             </setBody>
>             <to uri="cxf:bean:triggerService" />
>         </route>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-set-List-in-setBody-Blueprint-DSL-tp5747851.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
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

Reply via email to