Architectural Overview(Stateful and Stateless Session beans)
posted 11 years ago
I'm a bit confused with the explanations on pages 100 and 101 of HFE. Points number 4 and 5 for Stateful beans say :
4)The EJBObject is created/instantiated for the bean 5)The bean itself is instantiated
and for the Stateless bean
4)An EJBObject is created for this client 5)The bean stays in the bean pool!It comes out only to service an actual business method,if the client invokes one on the EJBObject stub.
Does this mean that when the appserver is started , the ejbcontainer instantiates StateLESS beans and places them in a bean pool , whereas for StateFULL beans the instantiation of eahc bean happens only when a client calls create on the Home stub?