Hello. I have got an working example in Camel 2.6. I upgraded to Camel 2.9, now the example fails. The Splitter does not work anymore. I tried for two hours now, but I do not understand what changed or how to fix it.
Here is the route. Input body is for example: "kai 1 / dvd , kai 2 / cd , kai 3 / book" from("file:orders/inbox?noop= true") .tracing() .process(new LoggingProcessor()) .bean(new TransformationBean(), "makeUpperCase") .unmarshal().csv() // working in 2.6, but not in 2.9 ??? (I used the default tokenizer, a comma, there. .split().body() // I tried with Camel 2.9 for example: //.split(body(String.class).tokenize(",")) //.split(body().tokenize(",")) // this way it splits again, BUT: // the first order contains a "[[", the last order contains a "]]". What is happening and why? // Content-based Router EIP //.log("Kai: ${body}") .choice() .when(body().contains("DVD")) // Producer Endpoint .to("file:orders/outbox/dvd") .when(body().contains("CD")) .to("file:orders/outbox/cd") .otherwise() .to("mock:others"); Can please anyone help me solve it (and explain what happened / changed between 2.6 and 2.9)? Thank you a lot... Best regards, Kai