Dear all, Does anyone have idea regarding this question? Or any workaroud?
I appreciate all the inputs. Thanks in advance~ ________________________________ 发件人: Han Yainsun <yain...@hotmail.com> 发送时间: 2023年11月14日 4:09 收件人: users@camel.apache.org <users@camel.apache.org> 主题: Jetty Component how to add additional steps after send http response back to the client Dear Camel Community and Camel users, Greetings to you! Camel version: 3.20.4 Spring Boot version: 2.7.11 JDK: Amazon Corretto 17 Platform: Windows server 2019 IDE: IntelliJ IDEA 2021.3.2 (Community Edition) I have an requirement that need calculate each message process time, incould total process time and backend process time. the route likes below, it seems that the jetty managed the http session and send the response back to client automatically at the end of route. Is it possible to explicitly inform jetty send the resonse at specific point? Thansk in advance. from("jetty:http://0.0.0.0:8080/test") .process(exchange -> exchange.setProperty("inbound timestamp", System.currentTimeMillis())) .to("http://localhost/mockbackend") .process(exchange -> exchange.setProperty("backend respond timestamp", System.currentTimeMillis())) .setBody(constant("hello")) // I expect jetty send response back to client here. .process(exchange -> exchange.setProperty("backend respond timestamp", System.currentTimeMillis()));