On Wed, Apr 16, 2014 at 8:37 PM, Mike D <[email protected]> wrote:
> I have some initialization stuff that I'd like to do before GCE can be > used. How would I do this? I tried creating a ServletContextListener and > then calling a static method on my GCE but that doesn't work. In debugging > I can see that the GCEs static variables are not set when a method is > invoked. > Endpoints applications are slightly different than normal web applications; as you remarked in your post, static variables don't retain their values. If you need to do initialization, you should handle init separately (perhaps as part of a cron job) and save the results into the datastore/cloud storage/cloud SQL. ----------------- -Vinny P Technology & Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
