If you are using Spring it's can be implemented using AOP - around advice. Pointcut on methods of your endpoint interface.
BR, Stas On Thu, Feb 9, 2012 at 1:48 PM, Sergey Beryozkin <[email protected]> wrote: > On 09/02/12 11:34, Nishant Chandra wrote: >> >> Thanks. I was looking for a context to store and retrieve a value. I hope >> there will be no side effects in storing data using setExchange()? >> > Exchange is scoped by a given request only > > Cheers, Sergey > > >> Thanks, >> Nishant >> >> On Thu, Feb 9, 2012 at 4:26 PM, Sergey >> Beryozkin<[email protected]>wrote: >> >>> On 09/02/12 10:10, Nishant Chandra wrote: >>> >>>> I agree. But I am more interested in time spent inside CXF. >>>> >>>> >>> Typically you can do it in CXF by using a pair of interceptors. >>> The CXF in interceptor will save the current time on the Exchange >>> (message.getExchange()) and then retrieve this value in the out >>> interceptors, or vice-versa if it's done on the client side >>> >>> HTH >>> Sergey >>> >>> >>> Nishant >>>> >>>> >>>> On Thu, Feb 9, 2012 at 3:10 PM, Jens Borgland<[email protected] >>>>> >>>>> wrote: >>>> >>>> >>>> Hi, >>>>> >>>>> >>>>> I think that could much easier be handled with a servlet filter >>>>> (http://docs.oracle.com/javaee/6/api/javax/servlet/Filter.html). >>>>> >>>>> Jens >>>>> >>>>> 2012/2/9 Nishant Chandra<[email protected]>: >>>>> >>>>>> Hi, >>>>>> >>>>>> I was wondering if it is possible to log request processing time i.e. >>>>>> >>>>> start >>>>> >>>>>> and end time using CXF interceptor? >>>>>> >>>>>> Thanks, >>>>>> Nishant >>>>>> >>>>> >>>>> >>>> >>> >>> -- >>> Sergey Beryozkin >>> >>> Talend Community Coders >>> http://coders.talend.com/ >>> >>> Blog: http://sberyozkin.blogspot.com >>> >> >> >> > > > -- > Sergey Beryozkin > > Talend Community Coders > http://coders.talend.com/ > > Blog: http://sberyozkin.blogspot.com
