Hi all, I have written a shopping cart application with a shopping cart 
> object being stored in the http session. On each request I'm returned a 
> different object instance. Is this the expected behaviour?
>
Yes.
 

> If I modify my shopping cart object, do I need to store it in the session 
> again every time (at the moment my changes are lost because I'm not doing 
> this)?
>
Yes, store it again.
 

> Works fine in development but not live. Is this to because of the 
> distributed architecture of GAE or am I doing something wrong?
>
You're correct. App engine spins instances up and down dynamically. Sooner 
or later the code that reads/writes this data will run on different VMs so 
obviously you'll get different HttpSession object references.


> I really hope you can help or confirm my thoughts on this. Thanks in 
> advance.
>
>
> Chris
>
> p.s. i'm using struts2, but don't know if that is possibly a problem
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/5AMPxJbH4YkJ.
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?hl=en.

Reply via email to