Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

An entity object lives in a container - EJB Spec , But for how long ?

 
JasmineS Saeid
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

The EJB Spec mentions the following :-

"From its creation until its destruction, an entity object lives in a container. Transparently to the client,
the container provides security, concurrency, transactions, persistence, and other services for the entity
objects that live in the container"

What i want to know is how does the container manage the pooling. I mean after the bean is deployed does it load the entire db refered directly into memory and if not then when does it do so ?
 
Chris Brat
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

How long the entity lives is container specific - each container may use their own algorythm such as LRU.

Chris
 
JasmineS Saeid
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Chris !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic