I've read into Diego's description here:
http://blog.fmpwizard.com/54204619
I'm now setting a random name to my actor and i save that name in a
RequestVar and later I use
LiftSession.sendCometActorMessage(<Actor Type>, <Actor Name>,
<Message>)
to shoot the message only to that one actor.
I hope that's somewhat a sane approach.
Thanks,
Torsten.
On 29 Apr., 08:32, AGYNAMIX Torsten Uhlmann <
T.Uhlm...@agynamix.de>
wrote:
> Thanks heaps for your response, and thanks for the hint with the randomly named CometActor per page.
>
> Now, how do I sent a message to the CometActor associated with the page the request came from?
>
> We currently have something like this:
>
> class NotificationsActor extends CometListener
>
> That thing registers with a NotificationServer to whom I sent the messages. How would I send the message to the Actor directly, do I just keep a reference in a RequestVar?
>
> Thanks,
> Torsten.
>
> --
> AGYNAMIX(R). Passionate Software.
> Inh. Torsten Uhlmann | Buchenweg 5 | 09380 Thalheim
> Phone:
+49 3721 273445
> Fax:
+49 3721 273446
> Mobile:
+49 151 12412427
> Web:
http://www.agynamix.de
>
> Am 28.04.2012 um 22:51 schrieb David Pollak:
>
>
>
>
>
>
>
> > Having a CometActor per page is the right approach... and having a randomly named comet actor per page is better so that you'll have a different instance per page.
>
> > I don't understand how CometListener works into the design. Why not just send the message directly from the Ajax handler to the CometActor associated with the page that the Ajax request came from?
>
> > Visi.Pro, Cloud Computing for the Rest of Ushttp://
visi.pro
> > Lift, the simply functional web frameworkhttp://
liftweb.net