Hi all,

I'm using Camel 2.8.0.

I have a simple route in a loop which realize a split with the attribute of
a tag:
                                
for(int i=0; i<5; i++)
{
                                
    from("file:message1.xml?noop=true")
   
.split(ns.xpath("xmi:XMI/xmi:Extension/elements/element[@name=\""+i+"\"]"))
    .to("file:splits/?fileName="+i+".xml");
                                
}

My xml file have several tags "element", and the objective is to separate
all of this tags with the attribute name.

But when i start my camel-context, i've the follow error:

/Caused by: org.apache.camel.FailedToStartRouteException: Failed to start
route route2 because of Multiple consumers for the same endpoint is not
allowed/

It's difficult to example so if you are answers, ask me.

Thanks
Benoit.






--
View this message in context: 
http://camel.465427.n5.nabble.com/Route-in-a-loop-tp5713621.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to