users@websocket-spec.java.net

[jsr356-users] [jsr356-experts] Re: Multithreading Options

From: Joe Walnes <joe_at_walnes.com>
Date: Wed, 8 Aug 2012 18:56:13 -0500

On Wed, Aug 8, 2012 at 6:47 PM, Greg Wilkins <gregw_at_intalio.com> wrote:

> On 5 August 2012 19:05, Mark Thomas <mark_at_homeinbox.net> wrote:
> > The question this raises for me is what is the mechanism going to be for
> > retaining state? i.e. what is the WebSocket equivalent of HttpSession
> > going to be? The follow-on question is how is state information
> > transferred between the WebSocketSession (for want of a better name
> > right now) and the HttpSession.
>
> In my websocket work to date, having websocket session has not been an
> issue as we create an EndPoint per connection as a new object that can
> hold state.
>

That's true, but there's also some state that needs to be shared between
connections such as authentication credentials.