First of all thanks for your response Claus I followed your modification, so i have modified my code :
from("file:test_routage_messages/dossier_cible/editeur/EA/versions/6.5/?noop=true").to("direct:split"); for(int i=0; i<Integer.parseInt(parser.getNbTag()); i++) //return the numbers of the tags in the node Elements { from("direct:split").split(ns.xpath("xmi:XMI/xmi:Extension/elements/element[@name=\""+i+"\"]")) .to("file://test_routage_messages/dossier_cible/editeur/EA/versions/6.5/splits/?fileName="+nomElement+".xml"); } But i have the same problem: Caused by: org.apache.camel.FailedToStartRouteException: Failed to start route route3 because of Multiple consumers for the same endpoint is not allowed: Endpoint[direct://split-me] -- View this message in context: http://camel.465427.n5.nabble.com/Route-in-a-loop-tp5713621p5713628.html Sent from the Camel - Users mailing list archive at Nabble.com.