On Mon, May 28, 2012 at 12:04 PM, Charpente <charpente.ben...@gmail.com> wrote:
> 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.

Ah sorry the seda component offers multiple consumers
http://camel.apache.org/seda

from "seda:split-me?multipleConsumers=true"


I just wonder how would the splitter know based on the file, if its a
1, 2, 3 etc.
Don't you need to only pickup the right files for the splitter?

from file1
to splitter1

from file2
to splitter2

etc



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to