camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Splitter based on header information
Date Tue, 04 Sep 2012 07:47:32 GMT
On Tue, Sep 4, 2012 at 9:39 AM, Marco Zapletal <marco.zapletal@gmail.com> wrote:
> Hi folks,
>
>
> I've gone through the docs of the Splitter. However, what I have learned so
> far is that the element that is used for splitting must be defined within
> the DSL (at design time) - or is there any chance to split an XML document
> based on header information, which can be set at run time?
>

Yep the splitter uses an expression, so it can refer to a header. Then
you can set the value of the header at runtime.

>
> Thanks and best regards,
>
> Marco



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message