Hi Pascal, 

perhaps you can encapsulate the call to the bean into a single route builder 
and add that route dynamically to the Camel Context like here:
https://stackoverflow.com/questions/10451444/add-camel-route-at-runtime-in-java

But I'm not sure if I understood the use case correctly.

Michael

> -----Ursprüngliche Nachricht-----
> Von: Pascal Schumacher [mailto:pascalschumac...@gmx.net]
> Gesendet: Mittwoch, 8. November 2017 20:25
> An: users@camel.apache.org
> Betreff: Spring - Create Bean after Camel Context is started
> 
> Hello everybody,
> 
> using camel 2.20 with spring 5.0.1 and need to start another component
> (defined as spring bean) after camel context has started. I added 'depends-
> on="camelContextId"' to the other beans spring xml definition, but this has a
> no effect as the camel context is starting asynchronously.
> 
> Any ideas how to solve this?
> 
> Thanks and kind regards,
> 
> Pascal


Reply via email to