camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From metatech <metatec...@gmail.com>
Subject Re: Adding a startup listener via spring
Date Mon, 09 Jan 2012 08:30:09 GMT
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.

Mime
View raw message