users@tyrus.java.net

Re: Session in Cluster

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Fri, 07 Dec 2012 10:30:48 +0100

Hi Andy,

running websocket app in distributed environment is not yet specified,
please see users_at_websocket-spec mailing lists for more info.

http://java.net/projects/websocket-spec/lists/users/archive/2012-12/message/12

Regards,
Pavel

On 12/6/12 11:44 AM, amo.ahcp_at_googlemail.com wrote:
> Hi,
> just one question. From your Chatserver example I found
> "ConcurrentHashMap<String, Session> connections". How can I change this
> example to work in a FailOver scenario?
>
> With session.getContainer().getActiveSessions() I can get all Session
> (except the currently thrown UnsupportedOperationException). Will it be
> possible to use this in a cluster-config to broadcast messages to all
> connected clients? If a broadcast will be initiated by a MDB (or
> anything else ) and not by a websocketMessage, how I can get the
> reference to the ClientContainer and/or to all active Sessions?
>
> Thank you and best regards
>
> Andy
>
>