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
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,
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
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