camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "G.J. van de Streek" <str...@avisi.nl>
Subject Re: usage of multicast
Date Wed, 22 Apr 2009 08:15:45 GMT

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.


Mime
View raw message