Results 1 to 3 of 3

Thread: HttpSession via HttpInvoker?

  1. #1

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    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 at 04:46 AM.

  3. #3

    Default

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

Similar Threads

  1. HttpSession handling
    By jocsch in forum Web Flow
    Replies: 7
    Last Post: Dec 16th, 2008, 04:43 AM
  2. Replies: 2
    Last Post: Sep 15th, 2005, 03:49 PM
  3. Replies: 8
    Last Post: Jul 28th, 2005, 10:42 AM
  4. Replies: 1
    Last Post: May 15th, 2005, 12:51 AM
  5. Replies: 2
    Last Post: Jan 16th, 2005, 01:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •