Instance variables in stateless session beans
I have read this post, but it does not answer my question
I don't agree with that Because I think keeping "any" state in the calls of different bean instances is that you need a 'stateful' session bean
Please help me understand this in advance thx rooban
Solution
In EJB, the difference between "stateful" and "stateless" refers to session state, not just Java object state (that is, any use of instance fields)
From Wikipedia:
A typical example is the shopping cart of an e - commerce application You use SFSB to store the "cart" object because it needs to maintain a conversation state between requests
On the other hand:
Related issues
> Stateless and Stateful Enterprise Java Beans > Stateful EJBs in web application? > Correct usage of Stateful Beans with Servlets > Static vs Instance members in Stateless EJBs > Why use stateful session beans?