• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Architectural Overview(Stateful and Stateless Session beans)

 
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please ignore last question.
 
A magnificient life is loaded with tough challenges. En garde tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic