Announcement Announcement Module
Collapse
No announcement yet.
HttpSession via HttpInvoker? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HttpSession via HttpInvoker?

    Is there a convenient way to get the HttpSession object from within a service executed by the HttpInvoker? I assume there's probably some kind of client-side equivalent that must be able to send back the SessionId for each new method call, too. I've been searching for this and can't find any solid answer...just a lot of discussion.

    Thanks,
    Dave

  • #2
    You can use a filter or subclass DispatcherServlet and attach the required objects to a ThreadLocal. You might find http://forum.springframework.org/showthread.php?t=10764 useful.

    I assume there's probably some kind of client-side equivalent that must be able to send back the SessionId for each new method call, too.
    Try using CommonsHttpInvokerRequestExecutor, as in the post link above.
    Last edited by robyn; May 16th, 2006, 04:46 AM.

    Comment


    • #3
      Excellent! Thanks much for the reply and the link. That'll do nicely, I think.
      Dave

      Comment

      Working...
      X