Re: Jetty Component how to add additional steps after send http response back to the client

2023-11-20 Thread Han Yainsun
additional steps after send http response back to the client Hi I would also add that HTTP servers like Tomcat, Jetty, JBoss etc have an access log that logs how long time each request takes. And they often have a API / plugin you can use to have your custom code triggered by the HTTP server so you can

Re: Jetty Component how to add additional steps after send http response back to the client

2023-11-19 Thread ski n
Or take a look at the wire tap pattern: https://camel.apache.org/components/4.0.x/eips/wireTap-eip.html Raymond On Sun, Nov 19, 2023 at 2:05 PM Claus Ibsen wrote: > Hi > > You can also look at using onCompletion > https://camel.apache.org/manual/oncompletion.html > > On Sat, Nov 18, 2023 at

Re: Jetty Component how to add additional steps after send http response back to the client

2023-11-19 Thread Claus Ibsen
Hi You can also look at using onCompletion https://camel.apache.org/manual/oncompletion.html On Sat, Nov 18, 2023 at 8:36 PM Claus Ibsen wrote: > Hi > > I would also add that HTTP servers like Tomcat, Jetty, JBoss etc have an > access log that logs how long time each request takes. And they

Re: Jetty Component how to add additional steps after send http response back to the client

2023-11-18 Thread Claus Ibsen
Hi I would also add that HTTP servers like Tomcat, Jetty, JBoss etc have an access log that logs how long time each request takes. And they often have a API / plugin you can use to have your custom code triggered by the HTTP server so you can do any kind of "how long time it takes" you need. On

Re: Jetty Component how to add additional steps after send http response back to the client

2023-11-18 Thread Claus Ibsen
Hi Camel will send back the response at the end of the route in the consumer, so what you do in that route example will not work. However if you want to do some kind of custom logging of how long it takes, then Camel Jetty has send back the response to the client, when the UnitOfWork is done. So

回复: Jetty Component how to add additional steps after send http response back to the client

2023-11-17 Thread Han Yainsun
Dear all, Does anyone have idea regarding this question? Or any workaroud? I appreciate all the inputs. Thanks in advance~ 发件人: Han Yainsun 发送时间: 2023年11月14日 4:09 收件人: users@camel.apache.org 主题: Jetty Component how to add additional steps after send http

Jetty Component how to add additional steps after send http response back to the client

2023-11-13 Thread Han Yainsun
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