Application instances are automatically created and spun down as needed
given the level of traffic to your application. If you have multiple
instances of your application running, you will need to recreate your cache
for each instance since static members aren't shared between instances. You
can, however, use memcache and/or the datastore which are shared between all
running instances.
- Jason

On Sat, Oct 17, 2009 at 3:21 PM, xworker <[email protected]>wrote:

>
> Hi all
>
> I have a simple servlet and I want to maintain a simple cache
> (hashmap) in the servlet. But is the servlet is created for every call
> it gets or does it live for a time? My cache seems to be empty (newly
> created) every time.
>
> thanks
> /xw
>
> >
>

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

Reply via email to