Hi, You are right: each class and static block, field is initialized or run only when needed by the jvm instance according the usual rules of class loading in Java
Your question is important when high activity happens to your application and many jvm instances are started: you cannot rely on static fields to store shared values across the entire application as they are locally initialized in each instance. regards didier On Jan 3, 5:43 pm, "ss.require" <[email protected]> wrote: > Accoring to > this:http://code.google.com/intl/uk-UA/appengine/docs/adminconsole/instanc... > during a loading request JVM loads only classes required to handle > this request. > i.e. if I have class A and the loading servlet class(which is invoked > during a loading request) doesn't have "import A" statement at the > top then class A won't be loaded by JVM during a loading request. Am I > right? > > Secondly, static fields and blocks of the underlying app which are not > required to handle a loading request are invoked during this request? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
