[WEBINAR] Application Acceleration: Faster Performance for End Users

Entity Bean

Definition - What does Entity Bean mean?

An entity bean, in the context of Java Platform 2, Enterprise Edition (J2EE), represents the business objects retained at the end of a session in a persistent storage mechanism. Busi.ness objects may include items like customer name, account number and/or account balance, etc

In J2EE, a relational database is a persistent storage mechanism. In a relational database, there is a table for each entity bean and every bean instance corresponds to a particular table row.

The following are characteristics differentiating entity beans from session beans:

  • Entity beans are retained after the end of a session, unlike session beans.
  • Entity beans permit shared data access.
  • Entity beans have a primary key or a unique identifier.

Techopedia explains Entity Bean

The two different types of entity bean persistence are bean-managed and container-managed. An entity bean is persistent because it is stored in a relational database, where data exists after a session ends.

Multiple clients may share entity beans. Entity transaction management is important because at any given time, different clients may need to access and change the same data. Each bean’s transaction management is provided by the Enterprise JavaBeans (EJB) container, which guarantees data integrity.

Each entity bean is identified by a unique object identifier, which is used by the client to locate a specific entity bean.

Entity beans may be used when a bean is a business object and not a method. For example, a bank account is a business object, whereas bank account verification is a business method. An entity beam may also be used if a bean’s state should remain persistent.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
"Techopedia" on Twitter

Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.