7 Replies Latest reply on Jan 24, 2011 10:44 AM by Michele Dicerto

    Camel split

    Michele Dicerto Newbie

      Hi all,

       

      I would like to create a route in which the In message should be splitted in 3 parts.

      I need to elaborate the first part and then in consequence of this do something with the second and third part of the message. ( for example stop the route or continue with another endopoint after some elaboration ).

       

      How I can crete a conditional routing?

       

      from("jetty:http://host:7777/osqi?bridgeEndpoint=true")

         .split(xpath("//token"))

             .process(new DumpBody())

             .to("http://host/authentication.php?bridgeEndpoint=true")

             .process(new DoSomething()).end()

            

         .split(xpath("//monitorData")).process(new DumpBody()).end()

         .split(xpath("//*")).process(new GetSQI()).end()

       

      thanks,

       

      Michele