Camel users,

Say I have a content based router where the http endpoints are slowly changing 
and looked up in a database:

RouteBuilder builder = new RouteBuilder() {

    String urlA = lookupUrl("bar");  e.g., "http://foo.com/barAugust";;
    String urlB = lookupUrl("cheese"); e.g,"http://foo.com/cheeseJuly";;

    public void configure() {
        from("seda:a").choice().when(header("foo").isEqualTo("bar")).to(urlA)
            
.when(header("foo").isEqualTo("cheese")).to(urlB).otherwise().to("seda:d");
    }
};

I am loading all of the endpoints at startup from a database, but I have a 
requirement to refresh the routes periodically without 
restarting my application.  Is it possible to reconfigure the content based 
router at runtime after it is started?

- Kevin

Reply via email to