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 <[EMAIL PROTECTED]> 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
