On Tue, Feb 9, 2010 at 11:40 PM, Adam Warski <[email protected]> wrote:
> Hello, > > > A CometActor has a lifespan of the session, not a particular page. The > same component may be visible on many different pages. The same component > may receive messages from external source, even when the component is not > being displayed. The CometActor is a much more pure (in the Smalltalk > sense) implementation of MVC than anything else on the web. > > Ah, I see. Makes sense :) But still I would like to make the actor more > short-lived then the session (which lives now 30 minutes I think). > > > If you want a CometActor to shut down if it has not appeared on any page > for a certain period of time, you can override timespan = Full(2 minutes) in > the CometActor. > > unfortunately there's no "timespan" method in CometActor (nor any other > method with the word "time" in it - I looked before I posted :) ). So is > there a way to make the actor live shorter then the session? > Yes, in fact there is a timespan method in CometActor. You should be using Lift 2.0-M1 or 2.0-SNAPSHOT. > > -- > Thanks, > Adam Warski > http://www.warski.org > http://www.softwaremill.eu > > > > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<liftweb%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Surf the harmonics -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
