[ 
https://issues.apache.org/jira/browse/CAMEL-20540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17824716#comment-17824716
 ] 

Raymond commented on CAMEL-20540:
---------------------------------

1. I tried the ExchangeSending / ExchangeSent events, but they are not 1 to 1 
mapped to routes. You can have a lot more events than expected.
2. The backlog tracer looks interesting as well, but based on the 
documentation, I couldn't find out how it works and how to use it 
(programmatically). The documentation lists options and operations, and then 
shows how to enable it, but there are no examples. Left me a bit in the dark 
tbh.

> Add RouteExchangeIn and RouteExchangeOut events
> -----------------------------------------------
>
>                 Key: CAMEL-20540
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20540
>             Project: Camel
>          Issue Type: Wish
>    Affects Versions: 4.4.0
>            Reporter: Raymond
>            Priority: Minor
>
> In my Camel based platform I currently use Camel 3. There, users can add a 
> route or kamelet per task.
> Example:
> {code:java}
> <route routeid="1">
>   <from uri="activemq:SomeQueue"/>
>     //some task
>     <to uri="direct-vm:2"/>
> </route>
> <route routeid="2">
>   <from uri="direct-vm:2"/>
>     //some task
>   <to uri="direct-vm:3"/>
> </route>
> <route routeid="3">
>   <from uri="direct-vm:3"/>
>     //some task
>     <to uri="sftp:myserver"/>
> </route>    {code}
> I use the Event Notifier to get events to show the message that goes into 
> each route. For this the event *ExchangeCreated* is used 
> ([https://www.javadoc.io/doc/org.apache.camel/camel-api/latest/org/apache/camel/spi/CamelEvent.html)].
> For each route I get a copy of the message Exchange with the breadcrumbid. 
> This works because the routes are connected either through:
> 1. direct-vm
> 2. vm
> 3. activemq
> Now I like to migrate to Camel 4. The issue is that direct-vm and vm aren't 
> available anymore since Camel 4.0:
> [https://camel.apache.org/manual/camel-4-migration-guide.html]
> The problem is that a direct endpoint has only 1 ExchangeCreated event over 
> multiple routes.
> I wish to have a RouteExchangeIn and RouteExchangeOut CamelEvent, so that I 
> can still offer this functionality. The nice thing is that this then would 
> work for all endpoints.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to