Hi ,

I have used in following way  which works creating routes dynamically.

 
ProducerTemplate template=exchange.getContext().createProducerTemplate();
         
        Message msg=exchange.getOut();
        System.err.println("Out msg headers " + msg.getHeaders());

        for(int i=0;i<3;i++){
                template.sendBody("jms:incomingData"+i,
exchange.getIn().getBody());
        }

may be easy one. How ever I wanted to read the messages from these routes
and But no clue how to inform this routes the which is going to be consumed?

Any Ideas

Sri


--
View this message in context: 
http://camel.465427.n5.nabble.com/creating-routes-dynamically-tp5715557p5715595.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to