Hello,
My question is not Camel specific but more Spring bean handling issue.
My issue is that even if there is an error in bean initialization the camel
route starts . I want the camel context only started if there was no errors
in Bean initialization . Some of beans are custom but some are third party
for example DC connection & JMS connection. Exampe below Datasource . Incase
there is a connection failure on startup is see exception thrown in logs but
the camel context is started . I want to avoid this.
<bean id="loaderDS"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="oracle.jdbc.driver.OracleDriver"
/>
<property name="url"
value="jdbc:oracle:thin:@localhost:1521:xe" />
<property name="username" value="Dataloader" />
<property name="password" value="Dataloader" />
</bean>
I saw in spring there are ApllicationEevents handling but i dont see
specific to bean handling . Is there a good way to handle this.
Thx,
Fx
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-Spring-Bean-error-Handling-tp5785414.html
Sent from the Camel - Users mailing list archive at Nabble.com.