When you set the alarm you want to create an Alarm object in the datastore
somewhere.  Have a cron that queries this table by date every minute.  When
it finds an entity, send the email and delete the Alarm.

You need to record some way of recognizing when specific Alarms have been
sent; you can't always guarantee that cron executes on schedule or that
clocks are not skewed by some random number of minutes.  The natural way to
do this is by creating/deleting an object.

Jeff

On Sun, Mar 4, 2012 at 9:10 AM, ale <aleee...@gmail.com> wrote:

> Hi everybody,Hello
> I'm writing an application that works as a calendar online (like google
> calendar).
> My question is: if a user sets an event to an hour, and I wanted to put an
> alarm to alert him (eg an email), how can I do ?
> I save the date of the event in a table, then
> I put up a task that checks every minute, and if the corret hour and send
> him the mail? There are better ways?
>
> thanks a lot!
> Alessandro
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/bqfitSV5p0wJ.
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to