EJB - Entity Beans I

3 April 2008

This post contains an introduction to Entity Beans.

An entity beans are used to represent a business object in a persistent storage mechanism for example: customers, orders, products, employees etc. We normally refer persistent storage mechanism as a relational database. Normally, each entity bean has an underlying table in a relational database. Please note that each instance of the bean corresponds to a row in that table.

Some people mix Entity beans with session means. Both are different in many ways. Some properties of Entity beans are listed below which are not present in Session beans:

- persistent
- shared access
- primary keys
- may participate in relationships with other entity beans

Lets talk about persistence. The state of Entity bean is saved in a storage mechanism, therefore it is persistent. It means that the entity bean’s state exists beyond the lifetime of the application or the J2EE server process. You all know that the data in a database is persistent because it stays even after database server or the applications are turned off/shutdown.

del.icio.us:EJB - Entity Beans I  digg:EJB - Entity Beans I  spurl:EJB - Entity Beans I  wists:EJB - Entity Beans I  simpy:EJB - Entity Beans I  newsvine:EJB - Entity Beans I  blinklist:EJB - Entity Beans I  furl:EJB - Entity Beans I  reddit:EJB - Entity Beans I  fark:EJB - Entity Beans I  blogmarks:EJB - Entity Beans I  Y!:EJB - Entity Beans I  smarking:EJB - Entity Beans I  magnolia:EJB - Entity Beans I  segnalo:EJB - Entity Beans I  gifttagging:EJB - Entity Beans I

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: EJB - Entity Beans I

Leave a Reply