Reading these notes. On the EBean site page. There is a paragraph that contains:
"The natural way to manage the EntityManager with a EJB3 container is to use a Stateful Session Bean."
Also there was an exposed problem like
"How to manage EntityManager during "User Think time"?
Thus, the question: What does the EJB stateless bean do/provide that could resolve the mentioned issue with "user-think-time" ?
I guess ejb provides: "Session Management", but what is the problem to store the session on ThredLocal variable and provide it to the user on demand? And not to use EJB. Does ejb have some one-stop solution for this?
I mean, the article says that: it is bad to use the concept of Session (in hibernate) or EntityManager - because of this issue. So, it says: not need to use this at all except if you use EJB stateless bean or if you are able to provide the session management mechanism by yourself (which supposed to be hard to implement?)