gansheer commented on code in PR #25492:
URL: https://github.com/apache/camel/pull/25492#discussion_r3782165187
##########
core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelInternalProcessor.java:
##########
@@ -644,6 +644,11 @@ public void setRoute(Route route) {
@Override
public DefaultBacklogTracerEventMessage before(Exchange exchange)
throws Exception {
if (!skip && backlogTracer.shouldTrace(routeDefinition.getInput(),
exchange)) {
+ if (route != null &&
Boolean.TRUE.equals(route.isStreamCaching())) {
+ StreamCachingHelper.convertToStreamCache(
+ camelContext.getStreamCachingStrategy(), exchange,
exchange.getIn());
+ }
Review Comment:
Good point — moved stream caching out of the tracer advice.
StreamCachingAdvice is now added at the route level in
addRouteLifecycleAdvice() when stream caching is enabled, mirroring what
DefaultChannel already does at the channel level. Ordered.HIGHEST ensures it
sorts before BacklogTracerRouteAdvice.
_This comment was generated by an AI agent (Claude Code on behalf of
gansheer)_
--
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]