I am experimenting with EJB3
I would like to enter a session with a bean state in the servlet so that every user who gets into the servlet gets a new bean.
Obviously, I cannot allow the bean to be an instance variable for a servlet, as this will be common. A apparantly injection of local variables is not allowed.
I can use the new operator to create a bean, but that doesn't seem right.
Is there a proper way to do this? It seems that what I'm trying to do is pretty simple, after all, we want every new customer to find an empty cart.
Eric Wilson
source share