I have implemented a route using multicast, what I want is to:
  1: get a file from an http/xml service
  2a: save the file
  2b: split the file and forward to a queue

I notice that only the first endpoint gets passed the body of the message.
In my example the file is empty. If I change the order, the file is saved,
but the splitter gets confused because it does not receive the contents of
the file:

    public void configure() {

        from("timer://foo?fixedRate=true&delay=0&period=60000")
                .to("http://testserver.avisi.nl/integration/agents";)
                .multicast()
                .to("direct:splitAgentsFile", "direct:saveAgentsFile")
                ;

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

        from("direct:splitAgentsFile")
                .splitter(new XPathExpression("/agents/agent"))
                .to("activemq:example.A")
                ;

I am probably like others confused with how the payload is handled. Any help
and explanation is greatly appreciated.
-- 
View this message in context: 
http://www.nabble.com/usage-of-multicast-tp23163812p23163812.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.

Reply via email to