it seems only contextInitialized method can be executed, and contextDestroyed never be executed. so i can not get the time my app alive after it was actived. i have use cron job to access a servlet in my app every 10min to avoid app be inactive, if necessary i will turn the time to 5min or less
On Nov 9, 11:40 am, "zhiw...@gmail.com" <zhiw...@gmail.com> wrote: > thanks , i will try it > > On Nov 9, 10:18 am, philburk <p...@softsynth.com> wrote: > > > > > > The logging/query idea is probably the best workaround, but I don't have > > > such a client to do this querying. If I did, I'd just host my app on it > > > :) > > > You could schedule a cron job in GAE that tickled your app. If it ran > > often enough it might keep it resident. > > >http://code.google.com/appengine/docs/java/config/cron.html --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---