aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes An entity object lives in a container - EJB Spec , But for how long ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "An entity object lives in a container - EJB Spec , But for how long ?" Watch "An entity object lives in a container - EJB Spec , But for how long ?" New topic
Author

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

JasmineS Saeid
Greenhorn

Joined: Jan 10, 2006
Posts: 18
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

Joined: May 22, 2003
Posts: 108
Hi.

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

Chris


SCJP 1.2, SCJP 5, SCBCD
JasmineS Saeid
Greenhorn

Joined: Jan 10, 2006
Posts: 18
Thanks Chris !!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: An entity object lives in a container - EJB Spec , But for how long ?