I have a question. Why it is not considered as good idea of having Stateful session bean rather than Stateless session bean.
Please explain me.
Thanks in advance,
posted 8 years ago
I guess it is because if you had a stateful session bean implement a service endpoint, then a new stateful session bean would have to be created for each individual client. This does not scale well, so having stateless session beans implement service endpoints is a better idea.
By the way, as far as I can tell (and I have been wrong regarding this question earlier), only stateless EJBs can be service endpoints.