Hi All,
I'm new to this group. I'm going to give the SCBCD exam soon.
I've one doubt in scalability of Stateful and Stateless session bean.
Stateless session beans are more scalable than Stateful session beans, because, stateless beans are pooled. Pooling concept is not implemented for stateful sesson beans because it has to maintain the state, and once the bean goes to the pool, bean doesn't keep any state. So, stateful session bean are removed from the memory, once it's job is done.
What my doubt is, if we let the stateful session bean associate to the client as long as the client is calling, but once this has to be removed, instead of removing, we can send this stateful bean to the pool. In this case, stateful session bean also doesn't not have any state. And next time, another client comes for the stateful bean, bean has to come from the pool. This way, why can't the scalability be more, also for stateful sesson bean?
Could any one please clarify my doubt.
Thanks in advance.
Chinna