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()));