Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2.0, 2.3.0
-
None
Description
Spring 3.0.x behaves differently when discovering bean dependencies. For example if you have a <routeBuilder ref="xxx"/> in <camelContext/> than the xxx bean will not by default be dependent on the <camelContext/>. This causes Spring maybe to create the xxx before the camelContext. And you most likely want CamelContext to be created beforehand, so IoC allows you to inject CamelContext into that xxx or whatnot.
We do already have logic for this in the namespace handler, but we need to add it to more places to have it working for all kind of camel types.