Just to better explain, that code should be included in interceptors that
you would develop.

cheers,

Fábio

On Thu, Oct 27, 2011 at 12:38 PM, Fabio souza <
[email protected]> wrote:

> Hi Vassilis,
>
> You can put the start time directly in the exchange, like in this code:
>
> Exchange ex = message.getExchange();
> ex.put("START_TIME", System.nanoTime());
>
> Now you can read the exchange in the out chain:
>
> Exchange ex = message.getExchange();
> Long start = ex.get("START_TIME");
>
> Regarding the phase, it depends on what you really want to measure.
>
> Best regards,
>
> Fábio
>
>   On Thu, Oct 27, 2011 at 12:12 PM, Vassilis Virvilis <
> [email protected]> wrote:
>
>> Hi,
>>
>> I would like to time the performance of our methods in a centralized
>> manner (meaning not adding timing logs to every individual method).
>>
>> I have a LoggingInInterceptor that prints the method and the arguments.
>>
>> I was thinking that it may be possible to add that as a signature along
>> with a timestamp to the /session/http response/some other place/
>> from where the appropriate logging out interceptor can pick them up
>> and calculate the time diff and log it.
>>
>> Q: Where should I put that kind of values?
>> Q: How I can retrieve them later in the OutInterceptor?
>> Q: In which phase the interceptors should run? (in and out)
>>
>>
>> Thanks
>>
>>      .bill
>>
>>
>
>
> --
> Fábio
>



-- 
Fábio

Reply via email to