Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity Beans  RSS feed

 
Manohar Karamballi
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai All!
Can anybody explain what are parameters that need to be considered while going for an entity bean based solution...Also help me regarding how multiple instances of entity beans handled by j2ee container..

TIA
Rgds
Manohar
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's kind of a broad question. I think you'd probably get a better answer at the bookstore.
The J2EE container tracks entity beans by their primary keys. Each bean is uniquely defined by its primary key. A lot of people think that this is a database primary key - and it often is - but EJB's aren't actually limited to just being stored in databases. Because the number of items being fronted by EJBs can potentially be very large, the container normally uses a technique similar to the way virtual memory is paged. Frequently/recently used beans are cached in memory and as they get crowded out, they are either written back to persistent storage (CMPs automatically, BMPs via ejbStore()) or, if the container is smart enough to detect unchanged beans, simply discarded.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!