camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Schumacher" <>
Subject Aw: AW: Spring - Create Bean after Camel Context is started
Date Thu, 09 Nov 2017 09:37:04 GMT
Hi Michael,

thanks for the response.

Sorry for not making myself clear. The other component accesses multiple camel routes and
throws errors if the routes are not started yet, therefore I would like spring to start it
after the camel context has been started. The simplifed spring configuration:

    <camelContext id="camelContext" />
    <bean id="componentDependingOnStartedCamelContext" depends-on="camelContext" />

Gesendet: Donnerstag, 09. November 2017 um 07:48 Uhr
Von: "Michael Lück" <>
Betreff: AW: Spring - Create Bean after Camel Context is started
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:

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


> -----Ursprüngliche Nachricht-----
> Von: Pascal Schumacher []
> Gesendet: Mittwoch, 8. November 2017 20:25
> An:
> 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


View raw message