cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: How to Stor/Get data in CXF Session .
Date Fri, 03 Feb 2012 17:17:39 GMT
Hi
On 03/02/12 15:02, chimaira wrote:
> Hello
> Sorry for my english, I'll try to be as clear as I can
>
> with CXF integrated in my  application , I m extending the
> AbstractPhaseInterceptor class so I can save my Request/Response into an
> output file.
>
> but, while my response xml contains no request information (like a customer
> ID's for ex)  I can't find the corresponding incoming request. I want to
> know from wich request does the response come.
>
>
> In the CXF logginInterceptor ,I notea this line :
>
> String id = (String) message.getExchange().get(LoggingMessage.ID_KEY);
>

Indeed, you can follow a similar approach, Exchange can always be used 
to keep the data common to the request and response chains

Cheers, Sergey


> Then I expend message.getExchange() methods
> I find this one:  getSession(). Is this what I need Or I m totally wrong ?
> and how can use it ?
>
>
> btw :  how can I stor/get data into a session like a unique transation ID ?
>
>
> Thank for your help
>
>
>
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/How-to-Stor-Get-data-in-CXF-Session-tp5454096p5454096.html
> Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message