camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Created: (CAMEL-1744) ScheduledPollConsumer - Should not throw polled exception on stop
Date Tue, 23 Jun 2009 08:33:35 GMT
ScheduledPollConsumer - Should not throw polled exception on stop

                 Key: CAMEL-1744
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.0-M2
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 2.0.0

See CAMEL-501

And nabble:

If an exception occured during a poll Camel will handle it by a ExceptionHandler you can set
on the DefaultConsumer. The default impl will log it at WARN level.

But the ScheduledPollingConsumer will remember this and when it does a doStop in case of shutdown
or the likes it will throw the first exception occurred during a poll.
This will indicate in an ERROR when doing a shtudown and its not really related as the poll
error could have happened like 3 months ago.

We should not do this. But only handle the poll exception when it occurred. End users can
configure their own ExceptionHandler if they want to do something differently than logging.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message