users@tyrus.java.net

Session in Cluster

From: <amo.ahcp_at_googlemail.com>
Date: Thu, 6 Dec 2012 10:44:45 +0000 (GMT)

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