Hello Guys!
I would like to know how can my seaside application automatically execute action (i should open period report) once per month? How can i do it? Cheers, Oleg _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Hi,
What about using a timer and let it be a thread in your image. Every x-seconds (or x months) it calls a method, maybe one that sends emails. That's the way we did in a project for cleaning a database periodically. Just using the functionality of the image :) Greetz, Peter Oleg Richards schrieb: > Hello Guys! > > I would like to know how can my seaside application automatically > execute action (i should open period report) once per month? How can i > do it? > > Cheers, Oleg > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Oleg Richards
You could also use external schedulers like cron to call certain functions in your application and let it be someone elses problem as they already have all facilities for this kind of thing. Just have a servlet that understands a few commands, params etc then curl your commands from a cron job. Voila! _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
By "servlet", in seaside, you mean what exactly? to
touch by http a localhost seaside application that makes that
call?
Sebastian
_______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Oleg Richards
I meant a VisualWorks servlet, but you could make a Seaside app as well and just look at the URL to determine actions, either way. _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2007/9/19, Boris Popov <[hidden email]>:
> > > > I meant a VisualWorks servlet, but you could make a Seaside app as well and > just look at the URL to determine actions, either way. Yeah, a WAEntryPoint is more or less the Seaside equivalent of a servlet. Cheers Philippe > Cheers! > > -Boris > (Sent from a BlackBerry) > > ----- Original Message ----- > From: [hidden email] > <[hidden email]> > To: 'Seaside - general discussion' > <[hidden email]> > Sent: Wed Sep 19 05:42:30 2007 > Subject: RE: [Seaside] Execute action once per month > > By "servlet", in seaside, you mean what exactly? to touch by http a > localhost seaside application that makes that call? > > Sebastian > > > > ________________________________ > > De: [hidden email] > [mailto:[hidden email]] En > nombre de Boris Popov > Enviado el: Miércoles, 19 de Septiembre de 2007 05:06 > Para: [hidden email] > Asunto: Re: [Seaside] Execute action once per month > > > > You could also use external schedulers like cron to call certain > functions in your application and let it be someone elses problem as they > already have all facilities for this kind of thing. Just have a servlet that > understands a few commands, params etc then curl your commands from a cron > job. Voila! > > Cheers! > > -Boris > (Sent from a BlackBerry) > > ----- Original Message ----- > From: [hidden email] > <[hidden email]> > To: Seaside - general discussion > <[hidden email]> > Sent: Wed Sep 19 01:01:28 2007 > Subject: Re: [Seaside] Execute action once per month > > Hi, > > What about using a timer and let it be a thread in your image. > Every > x-seconds (or x months) it calls a method, maybe one that sends > emails. > That's the way we did in a project for cleaning a database > periodically. > > Just using the functionality of the image :) > > Greetz, > Peter > > Oleg Richards schrieb: > > Hello Guys! > > > > I would like to know how can my seaside application automatically > > execute action (i should open period report) once per month? How > can i > > do it? > > > > Cheers, Oleg > > > > _______________________________________________ > > Seaside mailing list > > [hidden email] > > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > Seaside mailing list > [hidden email] > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > > > > _______________________________________________ > Seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by Oleg Richards
I think, that i will use Peter's way :) But how to use timer, or how
to create new thread in VW? Does anybody knows it? And Boris, Sebastian: How can i call specific URL in my seaside application? URL automatically encoded? How to make for example http://*****/ reporting/open_period to call function open_period? _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |