You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gilboy <jo...@gmail.com> on 2012/08/17 12:37:11 UTC

Custom Component Query

Hi 

I have a custom component which has a ScheduledPollConsumer. The custom
component pushes and consumes messages to/from a vendor product via a
proprietary network API which the vendor has provided.

If I have a network failure my consumer picks up on this straight away as it
is polling a network connection. When the network failure does occur my
consumer tries to correct itself by re-establishing connectivity. If the
connectivity is not restored after N attempts the consumers stops itself.

If there is a network related issue and the consumer is trying to correct
itself, it is very possible during this time that my producer for this
endpoint will be invoked. It will obviously also fail if there is a network
connectivity issue. The producer will be referenced in a different route to
the consumer. 

I am wondering how best to handle this. Should I try to suspend any route
that references the effected endpoint during the period in which I am
attempting to re-establish connectivity and then subsequently stop the
effected routes if I cannot re-establish connectivity? Presently I am just
stopping the consumer for the efffected endpoint

Thanks
Joe



--
View this message in context: http://camel.465427.n5.nabble.com/Custom-Component-Query-tp5717603.html
Sent from the Camel - Users mailing list archive at Nabble.com.