On Mon, Jun 25, 2012 at 12:14 PM, Hilde <hilde.sch...@yahoo.de> wrote: > Hello Claus! > > You are right, thanks a lot! > > When I look into the Camel API I can see that the method > getRouteDefinition(String routeId) in class CamelContext is deprecated. Is > there already a new way existing to bypass that way? >
No but there is a ModelCamelContext interface from the model package, which has all the APIs for working with the model classes. So you can cast CamelContext to ModelCamelContext and use these APIs Its a sort of API separation so the root package where CamelContext is do not have deps to model package where the route defs are. > Hilde > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Testing-routes-Get-route-definition-by-id-gets-null-tp5715014p5715033.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen