Hi all,
It's been ages since I've last used
EJB's so I'm kind of lost here. The question is, how should one approach the need to maintain a collection of EntityBeans?
Here's a scenario, a classical online shop:
- Users can add items to a shopping cart
- The shopping cart should not be persisted into a database
- The items themselves are of a single type of EntityBean
Now, I suppose this could be handled using CMR if the shopping carts would be EntityBeans as well, but what would be a good way to handle this with the ShoppingCart being a Stateful SessionBean, for example? How about if the shopping cart is just a POJO (a java.util.Vector, for example)?
Thanks.