You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Kid_79 <ch...@hotmail.com> on 2010/01/23 14:22:19 UTC

Put object in session from callback class

Hi all,
I'm use cxf and wssaj. In my configuration I have an interceptor (my
WSS4jInInterceptor uses action=Usernametoken). Now in my callback class I
get a parameter and I want to retrieve this value in my Interceptor. It's
possible?
I think that this parameter can be put in session but I don't Know how I set
session in callback class.

In interceptor class I can use a session because in handleMessage I get:
message.getExchange().getSession()

Can you help me?

Thank you
KID
-- 
View this message in context: http://old.nabble.com/Put-object-in-session-from-callback-class-tp27286090p27286090.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: Put object in session from callback class

Posted by Andreas Veithen <an...@gmail.com>.
You can use PhaseInterceptorChain.getCurrentMessage() to get the
current Message inside a CallbackHandler.

Andreas

On Sat, Jan 23, 2010 at 14:22, Kid_79 <ch...@hotmail.com> wrote:
>
> Hi all,
> I'm use cxf and wssaj. In my configuration I have an interceptor (my
> WSS4jInInterceptor uses action=Usernametoken). Now in my callback class I
> get a parameter and I want to retrieve this value in my Interceptor. It's
> possible?
> I think that this parameter can be put in session but I don't Know how I set
> session in callback class.
>
> In interceptor class I can use a session because in handleMessage I get:
> message.getExchange().getSession()
>
> Can you help me?
>
> Thank you
> KID
> --
> View this message in context: http://old.nabble.com/Put-object-in-session-from-callback-class-tp27286090p27286090.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>