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...


@PostConstruct
public void init(){ ... }


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

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




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-depends-on-Spring-bean-tp5780327.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to