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: Separate XML tags with splitter
Date Thu, 10 May 2012 15:12:11 GMT
On Thu, May 10, 2012 at 2:54 PM, Salomon <zoratorn@hotmail.fr> wrote:
> There is a difference between: split().xpath("/orders/order") and
> split(xpath("/orders/order")?
>
>
> I can't run "setHeader(Exchange.FILE_NAME)".
>
> Each of my tags have a id number in attribute...may be that could be a
> solution...!?
>

Yeah its a bit related to this FAQ
http://camel.apache.org/why-can-i-not-use-when-or-otherwise-in-a-java-camel-route.html

Prefer to use the variant where you pass in the expression as a
parameter. Then the DSL works the best in Java, as the generics type
wont have to change etc. Basically we have stretched how far you can
take a DSL in Java land.


>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Separate-XML-tags-with-splitter-tp5699358p5700140.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message