I noticed, that if I insert a queue in the route and go from there, that it
works:

    public void configure() {

        from("timer://foo?fixedRate=true&delay=0&period=60000")
                .to("http://avisi.nl/integration/agents";)
                .to("activemq:example.B");

        from("activemq:example.B")
                .multicast()
                .to("direct:splitAgentsFile", "direct:saveAgentsFile")
                ;

        from("direct:saveAgentsFile")
                .setHeader(FileComponent.HEADER_FILE_NAME, "agents.xml")
               
.to("file:///Users/streekgj/Desktop/filestore/?append=false")
                ;

        from("direct:splitAgentsFile")
                .splitter(new XPathExpression("/agents/agent"))
                .to("activemq:example.A")
                ;
-- 
View this message in context: 
http://www.nabble.com/usage-of-multicast-tp23163812p23171791.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Reply via email to