Hi

Yeah its IMHO a bit unfortunate with the @deprecated on the
CamelContext. But the point was to use ModelCamelContext as this
interface is from the model package. Where as CamelContext is from the
root.
So with the ModelCamelContext you dont have root -> model in the
dependency triage.




On Fri, May 17, 2013 at 10:08 PM, Chris Wolf <[email protected]> wrote:
> In a custom Processor, I am calling CamelContext.addRouteDefinition -
> but the javadoc says it's deprecated and
> to use org.apache.camel.model.ModelCamelContex.addRouteDefinition(..) instead.
>
> I see that DefaultCamelContext implements ModelCamelContext, so I just
> cast it like:
>
> ModelCamelContext context = (ModelCamelContext)exchange.getContext();
>
> That seems to work too.  What is the difference between these two
> interfaces and the "model"
> sub-package, in general?  (I searched the FAQ and CiA book, but didn't
> find anything)
>
> Thanks,
>
>
> Chris



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to