Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dukes Book example Cart synchronized

829740Nov 23 2011 — edited Nov 23 2011
Going through the Dukes Bookstore examples.

Why are the shopping cart methods synchronized?

If each user only has one session. Then then only access one servlet at a time.
So there is no need to synchronized access to the cart.
That's my thinking, am I wrong, explain it please?
Thanks
This post has been answered by DrClap on Nov 23 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2011
Added on Nov 23 2011
1 comment
207 views