camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raffi <raffi.onj...@gmail.com>
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...


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

Mime
View raw message