Hi Yeah unfortunately those methods on camelcontext was marked as deprecated to refer people to ModelCamelContext.
Frankly I think we should remove those as it confuses people much more than the goal. So to avoid the deprecation then type cast ModelCamelContext mcc = (ModelCamelContext) camelContext; On Tue, Nov 18, 2014 at 10:42 PM, salemi <sal...@avaya.com> wrote: > Hi Claus, > thank you for your respond. I used the code but is shows as deprecated. Is > there a new way to do the loading of new routes from XML file? > > Thanks, > Ali > > > > ----- > Alireza Salemi > -- > View this message in context: > http://camel.465427.n5.nabble.com/dynamically-add-routes-defined-in-DSL-to-a-camel-routes-tp5759221p5759277.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/