wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Goupil <goupilpie...@gmail.com>
Subject Re: Wicket-Atmosphere: how to post to only one client ?
Date Mon, 28 Jul 2014 16:24:51 GMT
Yes, it should be OK.


On Mon, Jul 28, 2014 at 6:19 PM, guillaume.mary <
guillaume.mary@interview-efm.com> wrote:

> Yes, thanks for the entry point.
>
> So I came to the following solution: register a
> ResourceRegistrationListener
> on the EventBus which fills a Map (concurrent) of SessionId to UUID. The
> SessionId is took from Session.get(), and the UUID is the one from
> resourceRegistered(..).
> Then my reporter (which has the SessionId) can ask for UUID thru this Map
> and so notifies the client with post(message, uuid)
>
> It works for my prototype.
>
> Is that a correct design ?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Atmosphere-how-to-post-to-only-one-client-tp4666768p4666772.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
La vie est source de joie, la mort est source de paix, seule la transition
est difficile.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message