Its optimized in core for these to be paired

On Mon, Jan 9, 2023 at 6:38 PM Ephemeris Lappis <ephemeris.lap...@gmail.com>
wrote:

> Hello.
>
> Still working on porting old code from Camel 2.X to Camel 3.X, I have
> a new issue. The EventNotifier in Camel 3.X is slightly refactored,
> and I can't get the events I expect although my settings seem correct.
>
> I'd like to get only event of Type :
> - ExchangeCreated
> - ExchangeFailed
> - ExchangeCompleted
> - ExchangeSent
>
> I understand that for Exchange* events I have to accept ExchangeEvent.
> But When I try to exclude ExchangeSending, ExchangeSent is not fired
> anymore.
>
> Here is my class :
>
> public class MyEventNotifier extends EventNotifierSupport {
>
> private Logger logger = LoggerFactory.getLogger(MyEventNotifier.class);
>
> public MyEventNotifier() {
>     setIgnoreCamelContextInitEvents(true);
>     setIgnoreCamelContextEvents(true);
>     setIgnoreRouteEvents(true);
>     setIgnoreExchangeAsyncProcessingStartedEvents(true);
> //  setIgnoreExchangeSendingEvents(true);
> }
>
> I've looked at the super classes, and I don't understand why Sent and
> Sending should be linked...
>
> Any ideas ? FYI I've tested it with 3.20.0 and 3.20.1, and both fail...
>
> For now I can ignore ExchangeSending events, but I'd prefer to
> understand how it works...
>
> Thanks for your help.
>
> Regards.
>


-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to