Hi,

I have this route which is load balanced to three activemq queueues. At
runtime, i wish to disable for example the round robin load balancer from
sending to
activemq:c. Can I do this via JMX? I tried on killing routes but I get an
exception saying that it's not supported.....

Here is an example of a route that I use. Thanks A Lot

from("activemq:financials").loadBalance().roundRobin().to("activemq:a",
"activemq:b", "activemq:c");//process(jposProcessor);
        from("activemq:a").process(new Processor()  {

            public void process(Exchange arg0) throws Exception {
                logger.info("A");

            }
        });
        from("activemq:b").process(new Processor()  {

                    public void process(Exchange arg0) throws Exception {
                        // TODO Auto-generated method stub
                        logger.info("B");
                    }
                });
        from("activemq:c").process(new Processor()  {

            public void process(Exchange arg0) throws Exception {
                // TODO Auto-generated method stub
                logger.info("C");
            }
        });

    }

Reply via email to