On Wed, Jun 7, 2017 at 6:01 PM, 'George (Cloud Platform Support)' via Google App Engine <[email protected]> wrote:
> Hello Joshua, > > This is potentially a quite interesting issue. Which global variables or > static fields do you intend to set? > Just some static variables which are set from Datastore to reflect some global project-level state. Actually, it's a Singleton. > How were these sometimes already set? > Some code detects if the variable is nonnull and balks,and prints a log. Some examples and relevant detail would come handy. In fact, > the contextInitialized method receives notification that the web > application initialization process is starting; this is the general > description. > Right -- but is *contextInitialized* called only once per JVM initialization? Or do "resident instances <https://cloud.google.com/appengine/docs/standard/java/how-instances-are-managed>" get "put to sleep" and then awakened by calling *contextInitialized?* What detail can I provide? The following should be a good summary: In *contextInitialized *, we set a static field of the class to nonnull. At the point right before it is set, it should always be null. > -- > 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 https://groups.google.com/group/google-appengine. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/google-appengine/3d76f372-6d20-48a8-bf3f- > 22b101a08f98%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/3d76f372-6d20-48a8-bf3f-22b101a08f98%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *JOSHUA FOX* Principal Software Architect | Freightos ☏* (Israel): *+972-545691165 | ☏* (US)*: +1-3123400953* | Skype*: joshuafox.freightos Smoother shipping with the world's online freight marketplace. Online Marketplace <https://www.google.com/url?q=https%3A%2F%2Fwww.freightos.com%2Fcompare-book-manage-freight-quotes%2F&sa=D&sntz=1&usg=AFrqEzfMkBQBWsovNlg47sIDORa5FpHDkQ> / In the News <https://www.google.com/url?q=https%3A%2F%2Fwww.freightos.com%2Fabout-us%2Fin-the-news%2F&sa=D&sntz=1&usg=AFrqEzexnYSKKYuEW4zuC-QrR4X8G53w6Q> / Freightos Blog <http://www.google.com/url?q=http%3A%2F%2Ffreightos.com%2Fresources%2Ffreightos-blog%2F&sa=D&sntz=1&usg=AFrqEzczY9ZxESxvh7ITnd_Al01Xyp4gdA> -- 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 https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAD%3DB7cOc-Oq-9CFR%3DiTTKYDi%2Bc5Y_%2Bji3u7%2BAky_oRDypg7xWw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
