Hi,
I'm attempting to get the Service Context within a Spring defined Hessian service but to no avail.
I'm attempting to get the context using the following code.
as mentioned in an example I appear to be unable to post a link to but which features the following code:Code:ServiceContext.getContextRequest()
The problem seems to be that this works fine in HessianServlets but not in beans defined using the HessianServiceExporter class.Code:HttpRequest req=(HttpRequest)ServiceContext.getContextRequest(); if (req!=null) String ret=(String)req.getSession().getAttribute("storeduserid");
The main reason I'm attempting to get the session from the request within the service / manager being called.
Any thoughts or help would be appreciated.
Ryan


Reply With Quote
