camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raffi <>
Subject Camel depends on Spring bean
Date Sun, 03 Apr 2016 02:07:45 GMT
My routes depend on a Spring bean that must be initialized before use. I'm
using Spring *PostConstruct* and Camel's *depends-on*, seems to work fine,
want to make sure it's a valid approach...

public void init(){ ... }

<bean id="myBean" class="com.acme.utils.RouteUtil"/>

<camelContext id="camelContext" depends-on="myBean" >

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message