• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean Pooling when is it decided(ian mock exam)?

 
andy armstrong
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is there info about bean pooling that
says this is done at deployement time.
The Haefel book says that this depends on the
server implementation...
 
Alexander Yanuar Koentjara
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by andy armstrong:
Where is there info about bean pooling that
says this is done at deployement time.
The Haefel book says that this depends on the
server implementation...

correct ... some of the container use "lazy" mechanism .. meaning that it will instantiate the bean (and add to the pool) only if necessary .. The initial number of bean can be defined in specific EJB container deployment descriptor since each container uses different policy.
 
Nicky Moelholm
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct, it is server dependent. In the deployment description (ejb-jar.xml) there is no information with regards to pooling.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic