Hi

This is expected as you use seda, that creates a new exchange
If you use direct then no exchange is created

On Mon, Jan 30, 2023 at 1:51 PM Ephemeris Lappis <ephemeris.lap...@gmail.com>
wrote:

> Hello.
>
> Debugging some routes with an EventNotifier it seems that the event
> ExchangecReated and ExchangeCompleted are repeated twice (I mean 3
> times instead of 1).
>
> My tested application routes are all on the same pattern :
> - route 1 : from JMS queue1 to JMS queue2
> - route 2 : from JMS queue2 to seda
> - route 3 : from seda to file
>
> In route 1 and 2 events are fired only once, but in route 3, I have 3
> events fired while the route is executed only once with only one file
> produced (and logs confirm I reach this part of the route only once).
> The ExchangeSent is fired only on the last exchange ID.
>
> All the exchange IDs are incremented as usual. Below, the logs :
> 13:01:42.540 [Camel (bbbmmm002-f002_context) thread #1 -
> JmsConsumer[bbbmmm002-f002.from.alice.queue]] INFO
> info.isocel.alice.com.caterpillar.testing.SpyEventNotifier - Spy
> counts created exchange : 1 [ID=29A6D5065A7A1B6-0000000000000000 /
> route=acq_bbbmmm002-f002]
> 13:01:42.579 [Camel (bbbmmm002-f002_context) thread #2 -
> JmsConsumer[bbbmmm002-f002.internal.queue]] INFO
> info.isocel.alice.com.caterpillar.testing.SpyEventNotifier - Spy
> counts created exchange : 2 [ID=29A6D5065A7A1B6-0000000000000001 /
> route=trf_bbbmmm002-f002]
> 13:01:42.585 [Camel (bbbmmm002-f002_context) thread #1 -
> JmsConsumer[bbbmmm002-f002.from.alice.queue]] INFO
> info.isocel.alice.com.caterpillar.testing.SpyEventNotifier - Spy
> counts completed exchange : 2 [ID=29A6D5065A7A1B6-0000000000000000 /
> route=acq_bbbmmm002-f002]
> 13:01:42.751 [Camel (bbbmmm002-f002_context) thread #2 -
> JmsConsumer[bbbmmm002-f002.internal.queue]] INFO
> info.isocel.alice.com.caterpillar.testing.SpyEventNotifier - Spy
> counts completed exchange : 2 [ID=29A6D5065A7A1B6-0000000000000001 /
> route=trf_bbbmmm002-f002]
> 13:01:43.406 [Camel (bbbmmm002-f002_context) thread #3 -
> seda://diff_bbbmmm002-f002] INFO
> info.isocel.alice.com.caterpillar.testing.SpyEventNotifier - Spy
> counts created exchange : 3 [ID=29A6D5065A7A1B6-0000000000000002 /
> route=diff_bbbmmm002-f002]
> 13:01:43.414 [Camel (bbbmmm002-f002_context) thread #3 -
> seda://diff_bbbmmm002-f002] INFO
> info.isocel.alice.com.caterpillar.testing.SpyEventNotifier - Spy
> counts created exchange : 4 [ID=29A6D5065A7A1B6-0000000000000003 /
> route=diff_bbbmmm002-f002]
> 13:01:43.441 [Camel (bbbmmm002-f002_context) thread #3 -
> seda://diff_bbbmmm002-f002] INFO
> info.isocel.alice.com.caterpillar.testing.SpyEventNotifier - Spy
> counts completed exchange : 4 [ID=29A6D5065A7A1B6-0000000000000003 /
> route=diff_bbbmmm002-f002]
> 13:01:43.442 [Camel (bbbmmm002-f002_context) thread #3 -
> seda://diff_bbbmmm002-f002] INFO
> info.isocel.alice.com.caterpillar.testing.SpyEventNotifier - Spy
> counts created exchange : 5 [ID=29A6D5065A7A1B6-0000000000000004 /
> route=diff_bbbmmm002-f002]
> 13:01:43.453 [Camel (bbbmmm002-f002_context) thread #3 -
> seda://diff_bbbmmm002-f002] INFO
> info.isocel.alice.com.caterpillar.testing.SpyEventNotifier - Spy
> counts completed exchange : 5 [ID=29A6D5065A7A1B6-0000000000000004 /
> route=diff_bbbmmm002-f002]
> 13:01:43.455 [Camel (bbbmmm002-f002_context) thread #3 -
> seda://diff_bbbmmm002-f002] INFO
> info.isocel.alice.com.caterpillar.testing.SpyEventNotifier - Spy
> counts completed exchange : 5 [ID=29A6D5065A7A1B6-0000000000000002 /
> route=diff_bbbmmm002-f002]
>
> Is it a bug, or what is the real expected behavior of these events ?
> Does it come from the seda component ?
>
> Thanks for your help.
>
> Regards.
>


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

Reply via email to