posted 19 years ago
Perhaps by understanding/knowing why does entity beans survive container crashes, you would find no confusion anywhere.
Entity beans represent an entity in the underlying store (usually a database). In the simplest example, an entity bean could be representing a single row in a table in our database.
So what if our web/application server crashes? When we get it up again, the entity bean could simple fetch the data from the database again, because, the crash of the web/application server is not tied to the database. Unless, of course, our database crashes, then the entity bean cannot get back its value (but you could backup & restore your database).
Think about session beans & MDBs. Do you store any of the state that they carry in any form of persistent storage? Nope. They're all in the heap. Memory.
HTH.
SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8