It looks like it comes from the exception is coming from the JdbcAggregationRepository, in fact.
2017-05-16 15:39 GMT+02:00 Jonathan Schoreels <jonathan.schore...@gmail.com> : > Hi all, > > It seems that if a database is unreachable, and if the camelcontext > contains a sql consumer, the camel context won't start, even though marked > as Created in karaf console. > > I don't mind the karaf "created" marked, but I would love to know if you > have any advice to startup sql route when the DB may be down, for example > if after a maintenance, the karaf is faster than the DB to restart. > > A workaround found is to use a timer before, and the sql query in a > pollEnrich just after, but it's quite dirty. > > You can find the whole stack here : > https://pastebin.com/XvYpCjZK > > Jonathan Schoreels >