ModelCamelContext model = (ModelCamelContext) camelContext; eg you just type cast the camelContext instance if you want to avoid those deprecation warnings. You can also check the javadoc of those deprecated methods as they say what to do
On Tue, Aug 12, 2014 at 2:07 PM, sakchakravarthi <[email protected]> wrote: > Hi > Thanks for your response. > As I am new to this concept. Can you guide me how I can do that what you > have mentioned in your earlier response. Which method I can use to get this > ModelCamelContext. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Create-and-add-routes-to-context-at-runtime-tp5754953p5755104.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
