Emond, I've tried it like you said and it almost works! It works in the sense that I'm able to send an event to only one resource : that alone is fine in itself.
But unfortunately, when doing: broadcaster.getAtmosphereResources() I don't know which browser corresponds to which resource. So I definitively need your functionality of resource creation listening. Keep up the good work! Cheers, Pierre On Tue, Jan 8, 2013 at 2:07 PM, Pierre Goupil <goupilpie...@gmail.com>wrote: > Excellent, Emond! I'll try it like you said and tell you what happens. > > Cheers, > > Pierre > > > On Tue, Jan 8, 2013 at 1:55 PM, Emond Papegaaij < > emond.papega...@topicus.nl> wrote: > >> Hi Pierre, >> >> The UUID is bound to a page when atmosphere makes to call back to the >> server, >> which makes sense because before then, there is no AtmosphereResource, >> which >> means there cannot be a UUID. I think this is a bit of a design flaw, >> because >> it is not possible to listen to the registration of this uuid. I'll see >> if I >> can add a listener to EventBus to act on the registration and removal of >> tracked pages: https://issues.apache.org/jira/browse/WICKET-4957 . I'll >> try to >> fix this later today. >> >> For the testcase, you can use post with a resource and take the resource >> from >> the Broadcaster: >> BroadcasterFactory.getDefault() to get the BroadcasterFactory >> factory.lookup... to get the Broadcaster >> broadcaster.getAtmosphereResources() and pick one >> >> Best regards, >> Emond >> >> On Monday 07 January 2013 22:43:43 Pierre Goupil wrote: >> > Good evening, >> > >> > As asked in WICKET-4879 >> > <https://issues.apache.org/jira/browse/WICKET-4879>I was supposed to >> > create a quickstart demonstrating that >> > Application.get().getEventBus().post(MyObject, pageUuid) sends its >> messages >> > to all connected clients. >> > >> > I'd like to apologize here because I haven't created it yet: it's been 1 >> > month since I'm sick and / or in holidays and I've only managed to >> create >> > it this evening. My bad, sorry. >> > >> > So I'm in the process of creating this quickstart and I have a problem, >> > when I do: >> > >> > AtmosphereBehavior.getUUID(this) >> > >> > in a WebPage (a sub-class of it, in fact) it always returns null. So I'm >> > unable to have a working post(MyObject, pageUuid). >> > >> > Does anyone has an idea regarding this? >> > >> > I use wicket-atmosphere 0.7-SNAPSHOT: in 0.4-SNAPSHOT it used to work >> well >> > (at least the UUID retrieving part) but it looks like it's not the case >> > anymore. >> > >> > Thanks in advance, >> > >> > Pierre Goupil >> > > > > -- > "Parce que c'est la nuit qu'il est beau de croire à la lumière." > > Edmond Rostand > -- "Parce que c'est la nuit qu'il est beau de croire à la lumière." Edmond Rostand