Execute action once per month

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Execute action once per month

Oleg Richards
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
Reply | Threaded
Open this post in threaded view
|

Re: Execute action once per month

Peter Osburg-2
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
Reply | Threaded
Open this post in threaded view
|

Re: Execute action once per month

Boris Popov, DeepCove Labs (SNN)
In reply to this post by Oleg Richards
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
Reply | Threaded
Open this post in threaded view
|

RE: Execute action once per month

Sebastian Sastre-2
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
Reply | Threaded
Open this post in threaded view
|

Re: Execute action once per month

Boris Popov, DeepCove Labs (SNN)
In reply to this post by Oleg Richards
Re: [Seaside] Execute action once per month

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.

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] [[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
Reply | Threaded
Open this post in threaded view
|

Re: Execute action once per month

Philippe Marschall
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
Reply | Threaded
Open this post in threaded view
|

Re: Execute action once per month

Oleg Richards
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