Re: catch Exception thrown by ScheduledPollConsumer

2011-03-08 Thread Martin Samuelsson
Hi again, I overlooked your additional reply. Thank you for the pointer, we will look into it! We are still in the learning stages when it comes to working with Camel "the right way". Great news about the upcoming feature as well... Regards, Martin On Fri, Mar 4, 2011 at 5:26 PM, Claus Ibsen

Re: catch Exception thrown by ScheduledPollConsumer

2011-03-04 Thread Claus Ibsen
On Fri, Mar 4, 2011 at 4:44 PM, Martin Samuelsson wrote: > Hi Claus and thank you for your reply! > > I was afraid of that. We will have to do some thinking on this one... > You can just have a route for these errors and send the exception to this route, eg using the direct component and the prod

Re: catch Exception thrown by ScheduledPollConsumer

2011-03-04 Thread Martin Samuelsson
Hi Claus and thank you for your reply! I was afraid of that. We will have to do some thinking on this one... On Fri, Mar 4, 2011 at 3:01 PM, Claus Ibsen wrote: > Hi > > The error handling in the route DSL only applies for messages. > eg when an Exchange has been created by the consumer and suc

Re: catch Exception thrown by ScheduledPollConsumer

2011-03-04 Thread Claus Ibsen
Hi The error handling in the route DSL only applies for messages. eg when an Exchange has been created by the consumer and successfully passed on to the Camel routing engine. At that point the routing error handler applies. The Camel in Action book covers this in section 5.1.2 You have to deal w

catch Exception thrown by ScheduledPollConsumer

2011-03-04 Thread Martin Samuelsson
Scenario: We have built a custom samba-component backed by jcifs that extends GenericFileComponent. The Consumer extends GenericFileConsumer, meaning it's also a ScheduledPollConsumer. The Consumer is in this case using a custom Strategy that extends DefaultPollingConsumerPollStrategy. The Strategy