I know this is an old thread, but I found some thing similiar and here is how
I accomplished it.  Basically, you have to provide a function that returns a
split of the input.  In my case, I wanted to split on newlines:

split(_.getIn().getBody(classOf[String]).split("\n")) {
        loadbalance roundrobin {
          to("direct:x").id("x")
          to("direct:y").id("y")
        }
      }



--
View this message in context: 
http://camel.465427.n5.nabble.com/Scala-DSL-splitting-tp2473665p5661887.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to