Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Architectural Overview(Stateful and Stateless Session beans)

 
jeff mutonho
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

jeff mutonho
 
jeff mutonho
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please ignore last question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic