I need to do some initialization in a Google Cloud Endpoint. I tried doing this by calling a static method on the endpoint when the app starts - in the ServletContextListener - which sets some static variables in the endpoint. However, these variables are not retained when an endpoint is used. How does one initialize and endpoint? Note that I'd like to use this technique (whatever it is) to initialize other endpoints.