On Mon, Jan 9, 2012 at 9:30 AM, metatech <metatec...@gmail.com> wrote:
> 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 ?
>

spring-dm has a option AFAIR where you can tell it to start synchronously.
Its an option you need to set in your bundles MANIFEST.MF file. Its
documented somewhere in the spring-dm docs.

I found some stuff here
http://static.springsource.org/osgi/docs/1.2.1/reference/html/app-deploy.html#app-deploy:required-libraries

See the create-asynchronously option

> 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.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to