camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KleineKiwi <sugarsweetmel...@gmx.de>
Subject No routing at all
Date Tue, 08 Sep 2015 14:55:32 GMT
Hello i have following problem, i try to route a xml with 2 xpathes like
following
from("file://mnt/test?noop=true").choice()
				 
.when().xpath("/Artikel[Artikelnumber=12345]").to("file://src?fileName=kunde3.xml")
				 
.when().xpath("/Artikel2[Artikelnumber=54321]").to("file://src?fileName=kunde4.xml").otherwise()
						.to("file://mnt/bestellungen");

but it doesnt copy the wished xml, i tried it on
http://www.freeformatter.com/xpath-tester.html#ad-output
and it gives the wished items.
i already tried NOT using filenames, using filenames everywhere and just
using a filename in the otherwise..
when i dont use the choice thing, it works fine, but it should also work
with the xpath.. 
i use camel on an eclipse maven java projekt and all dependencies are there,
i created a similiar class to change a csvtoxml, without the choice, of
course ..

and even if the whens _dont_ work, at least it should copy the xml to the
other folder, because it does so, when i delete the whens..(and choice) can
anybody help me?

PS: there is no error message at all, it procedes everything, but without
any outcome



--
View this message in context: http://camel.465427.n5.nabble.com/No-routing-at-all-tp5771343.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message