Announcement Announcement Module
Collapse
No announcement yet.
Hessian Service Exporter & Service Context Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hessian Service Exporter & Service Context

    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.
    Code:
    ServiceContext.getContextRequest()
    as mentioned in an example I appear to be unable to post a link to but which features the following code:
    Code:
    HttpRequest req=(HttpRequest)ServiceContext.getContextRequest();
    if (req!=null)
    String ret=(String)req.getSession().getAttribute("storeduserid");
    The problem seems to be that this works fine in HessianServlets but not in beans defined using the HessianServiceExporter class.
    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
Working...
X