, Feb 17, 2010 10:52 PM
Subject: [appengine-java] Re: how to do initialization at startup?
To: google-appengine-java@googlegroups.com
There is significant difference between dealing with infrequent crash event
and dealing with frequent shutdown by GAE. The difference is huge when you
want to have
Addressing the stable situation where the VM is shutdown by GAE, similarly
to the Servlet context initialization you can call the Servlet context
destroyed listener to take care of any persistence you want to do there.
Of course, this doesn't take care of any exceptional circumstances such as a
There is an Custom Admin Console pages in new SDK 1.3.1.
I think the best place to preload the data to your application is
using servlet/page exposed in this Console.
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to this
yes, the new console is a good addition. however, because the app can be
shutdown/restarted by GAE at any time, you would still need to put the
initialization code in context listener (or similar place) so that it will
be called automatically when the app is restarted.
I just realize a potential
Hi AJ,
Your consideration is not specific to GAE. You always have the potential
risk that a server could crash and then all your unstored data changes will
get lost.
So for critical data you should use a write-through cache. However, in a
distributed environment like GAE (but not specific to GAE,
There is significant difference between dealing with infrequent crash event
and dealing with frequent shutdown by GAE. The difference is huge when you
want to have some intermediate data in memory for performance reason. When
there is a system crash, you just start over, which is tolerable in most
A reliable counter needs to be stored in the datastore and sharded -
this has always been the only place to put data that your app depends
on. Static variables are only useful for caching a small amount of
data for speed - never to be depended on. Also keep in mind that your
app is not
Subject: [appengine-java] Re: how to do initialization at startup?
To: google-appengine-java@googlegroups.com
--
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-j...@googlegroups.com