Hi Claus,

I tried the "depends-on" solution but unfortunately the camel context is
started asynchronously after the Spring context is initialized.
The behaviour is implemented in class OsgiSpringCamelContext, method
onApplicationEvent.
Do you think of any other reliable way to define dependencies between camel
contexts ?

Thanks,

metatech



Claus Ibsen-2 wrote
> 
> In Spring XML you should be able to use the depends-on attribute to
> say that your bean depends on Camel.
> 
> <camelContext id="myCamel" ...>
> 
> <bean id="foo" depends-on="myCamel" ...>
> 
> 
> 
> 


--
View this message in context: 
http://camel.465427.n5.nabble.com/Adding-a-startup-listener-via-spring-tp4306163p5130769.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to