Sorry, I really messed up with my abbreviations in my last post.
What I meant was - is there a pool for the SFSB (ya..Stateful Session Bean !!!).
This is the correct question -
Am really confused as to whether there is a pool for SFSB like SLSB pool.
HFEJB says that - when ever the client calls the create(), then a new SFSB bean and EJBObject is created, bean is associated with EJBObject and EJBObject stub is returned to the client.
As per EdRoman - there is a pool for SFSB also. If there are not enough beans available, then Least Recently Used (LRU) bean from the pool is passivated, and the client is given an already existing SFSB bean from the pool.
I was under the impression that for every client a new SFSB is created.
But Ed Roman (and my Tech Lead !!!) seems to suggest that existing beans from the pools can be used. Their point is - you cannot keep creating new beans for every user. There wud be a max limit on the number of SFSB that is created. E.g. if there are 2 beans and 4 users, then first 2 users get the beans. Then when the 3rd user requests for the bean, then LRU Bean is passivated, and the existing bean is sent to the client.
btw..one more question here...
During passivation, is the bean passivated (or) are the contents of the bean passivated ? As per my understanding, HFEJB says the bean is passivated and EdRoman suggests that the contents of the bean are passivated. Thats why the same SFSB bean can be allocated to multiple clients.
Sorry for the extremly long question.