You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Kiren Pillay <ki...@gmail.com> on 2012/03/15 09:53:19 UTC

Adding near true duration into a response

Hi All,

I am experiencing an issue where I am trying to pass back the response
duration of a REST request with the request. There is however latency in
the JAXB Marshalling so the duration we pass back is erroneous.

Attached is an example screenshot: The duration tag indicates 288 while the
soapui true response time is 344ms.

So the processing sequence to me is:
Client----> receive request---> process request --> Add duration --> JAXB
marshalling --> other CXF code ---> client.

How can I maybe intercept the response just before it is returned to the
client and inject the duration in the payload there?

Regards
Kiren