On Thu, Aug 4, 2011 at 3:06 PM, ravi <[email protected]> wrote:
> I have one route defined like:
>
> from (MyCustomEndPoint).to(activeMQ:myQ)
>
> MyCustomEndPoint is a custom endpoint which returns a Consumer, The consumer
> has got one internal Thread reading messages from Database. If lets say some
> Database Exception comes(connection reset) the internal thread stops but
> consumer is still alive (Camel Route remain in Started State, so next time
> when Database connection is online, as Read Thread is stopped it is not
> reading from Database because there is no check of whether Read Thread is
> running or not).
>
> For such scenario i want MyCustomEndpoint to get re-initialized. Or i may go
> with Route Re-start but if there is way and Camel Framework allows it.

No that is per component specific how they deal with such kind of issues.

If its a scheduled based consumer then you can inherit from a
ScheduledPollingEndpoint in camel which has some logic to retry. For
example as the ftp consumer would do.



>
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Route-Recovery-in-case-of-FATAL-Exception-tp4666264p4666264.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to