Re: [google-appengine] Google Cloud Endpoint initialization

2014-04-24 Thread Gilberto Torrezan Filho
Let me see if I understood correctly: are you saying a instance of my entire VM are launched every time a request is handled by the GCE engine? All my singleton classes (DAOs, default values, some utilities) are reinstantiated each request? I don't save sensitive state in memory (I use

Re: [google-appengine] Google Cloud Endpoint initialization

2014-04-24 Thread Vinny P
No. Instances don't get reloaded per request with Endpoints. That would be a terrible waste of resources. Sorry, I probably should have clarified/explained more in my previous email, but I was in a bit of a rush when I wrote that. Endpoints doesn't support static methods ( see this article,

Re: [google-appengine] Google Cloud Endpoint initialization

2014-04-23 Thread Vinny P
On Wed, Apr 16, 2014 at 8:37 PM, Mike D mdichiapp...@fittrace.com 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

[google-appengine] Google Cloud Endpoint initialization

2014-04-22 Thread Mike D
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