You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Kevin TierOne <ke...@gmail.com> on 2007/07/12 20:28:00 UTC

msgContext.getSessionContext() is null

Using Axis2 1.2:

In the receiverInOut.invokeBusinessLogic() code,
msgContext.getSessionContext() always seems to be null.

Instead, I use this to get the session context:
msgContext.getTransportIn().getReceiver().getSessionContext(msgContext);

Should msgContext.getSessionContext() be returning the SessionContext as
well?  Or is it null for a reason?

Kevin

Re: msgContext.getSessionContext() is null

Posted by Saminda Abeyruwan <sa...@gmail.com>.
If the attached service has the scope of "trasnportsession", you'll be
getting the SessionContext. The default listeners that provide with Axis2
such as http/https will provide you SessionContext. But other tranpsorts
like mail / smtp wouldn't have implemented it.

Thank you

Saminda

On 7/12/07, Kevin TierOne <ke...@gmail.com> wrote:
>
> Using Axis2 1.2:
>
> In the receiverInOut.invokeBusinessLogic() code,
> msgContext.getSessionContext() always seems to be null.
>
> Instead, I use this to get the session context:
> msgContext.getTransportIn().getReceiver().getSessionContext(msgContext);
>
> Should msgContext.getSessionContext() be returning the SessionContext as
> well?  Or is it null for a reason?
>
> Kevin
>
>
>


-- 
Saminda Abeyruwan

Software Engineer
WSO2 Inc. - www.wso2.org