camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael L├╝ck <michael.lu...@hm-ag.de>
Subject AW: Spring - Create Bean after Camel Context is started
Date Thu, 09 Nov 2017 06:48:24 GMT
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:pascalschumacher@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



Mime
View raw message