Custom Component Query

2012-08-17 Thread gilboy
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.


Custom component query

2012-07-20 Thread gilboy
Hi

I need to create an event driven custom component. 

The sender which invokes the event driven consumer is a spring managed bean.
My custom component consumer is not spring managed as this is obviously
created from my endpoint which acts as a factory for my producers and
consumers. 

Hence, I am a little confused as to how the sender gets wired up to the
consumer as one is created via spring(sender) and the consumer is created
via my custom endpoint

Thanks!



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


Re: Custom component query

2012-07-20 Thread Doug Douglass
Camel Proxy[1] describes several ways of wiring things up (and links to
others) depending our your needs.

[1] http://camel.apache.org/using-camelproxy.html

On Fri, Jul 20, 2012 at 4:09 PM, gilboy josephoto...@gmail.com wrote:

 Hi

 I need to create an event driven custom component.

 The sender which invokes the event driven consumer is a spring managed
 bean.
 My custom component consumer is not spring managed as this is obviously
 created from my endpoint which acts as a factory for my producers and
 consumers.

 Hence, I am a little confused as to how the sender gets wired up to the
 consumer as one is created via spring(sender) and the consumer is created
 via my custom endpoint

 Thanks!



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