Re: [appengine-java] Re: What are the rules for object persistence between requests

2010-03-07 Thread Jeff Schnitzer
On Sun, Mar 7, 2010 at 2:30 PM, tempy wrote: > Well I didn't think that GAE would start up a new JVM per request, but > I assumed the GC would clean up any data created between requests, as > there seems to be nothing left holding references to said data.  One > of these days I will read up on the

[appengine-java] Re: What are the rules for object persistence between requests

2010-03-07 Thread tempy
Well I didn't think that GAE would start up a new JVM per request, but I assumed the GC would clean up any data created between requests, as there seems to be nothing left holding references to said data. One of these days I will read up on the details of java garbage collection... On Mar 7, 9:01

Re: [appengine-java] Re: What are the rules for object persistence between requests

2010-03-07 Thread Jeff Schnitzer
On Sun, Mar 7, 2010 at 11:36 AM, tempy wrote: > Interesting... now I need to go and make sure all my logic still works > if singletons stick around between requests.  GAE is full of > surprises!  Thanks for the tip =) It may be true that GAE is full of surprises, but this shouldn't have been one

[appengine-java] Re: What are the rules for object persistence between requests

2010-03-07 Thread tempy
Interesting... now I need to go and make sure all my logic still works if singletons stick around between requests. GAE is full of surprises! Thanks for the tip =) On Mar 7, 7:22 pm, John Patterson wrote: > Hi Mike, static variables are a useful way to cache short term data.   > They will last