Hello Fellow Ranchers, I am preparing for SCEA Step2 and have a doubt about class diagram given for the case study given in Mark Cade's book. 'SearchProcessor' which is marked as Stateless bean, is creating 'ShoppingCart', which I am assuming is a model. So my doubt is that
How this system is maintiaining 'ShoppingCart' state?
Is it relying on client to maintain 'ShoppingCart' state? If so, is it a good idea (As client could easily manipulate it)?
what if 'SearchProcessor' calls a 'ShoppingCartProcessor' which is a 'StatefulBean' which creates 'ShoppingCart'? So the state is maintained within the system, not with the client.