gnodet-bot commented on code in PR #28759:
URL: https://github.com/apache/camel/pull/28759#discussion_r4430991339


##########
components/camel-browse/src/main/java/org/apache/camel/component/browse/BrowseEndpoint.java:
##########
@@ -184,9 +210,10 @@ protected void doInit() throws Exception {
 
     @Override
     protected void doStop() throws Exception {
+        // the endpoint is stopped when the route that consumes from it is 
removed, while the routes that send to it
+        // keep sending: the list is cleared but kept for them
         if (exchanges != null) {

Review Comment:
   💬 **Open from the first review:** This clears exchange history whenever the 
endpoint stops — including when only the consuming route is removed (dev-mode 
reload). If the intent is to preserve the browsed history while producers keep 
running, guard the clear:
   
   ```suggestion
           if (getCamelContext().isStopping() && exchanges != null) {
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to