Hi

Camel 1.x doesn't support the change the route dynamically.
Camel 2.0 supports to modify the route dynamically.
But for your requirement, I don't think current Camel 2.0 snapshot supports this found , since we don't export the load balancer's processor to the JMX. We have plan to do some enhancements[1][2] of the JMX support after Camel 2.0 release, please feel free to add your requirements.

[1] http://issues.apache.org/activemq/browse/CAMEL-1266
[2] http://issues.apache.org/activemq/browse/CAMEL-1484

Willem


Carlo Camerino wrote:
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