Entity Bean

By: aathishankaran Emailed: 1643 times Printed: 2110 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Entity bean is persistent object and represents an object view of data stored in permanent storage.

Entity beans can be of two types:

a) CMP (Entity Bean with Container Managed Persistence)  
b) BMP (Entity Bean with Bean Managed Persistence)

a)    CMP 

In CMP, we do not need to write any SQL related code for adding a new record, editing a record or deleting a record, or querying a table.  The EJB server itself automatically manages the creation of the table and appropriate SQL statements.  

b) BMP

However, if we want to have complex joining of data from number of tables and then provide persistence, we will have to write our own SQL.  Hence, the need for Bean managed Persistence.

1)    Message-Driven Beans 

Message Driven Bans do not have any interface.  They are just a Java class.


Java Beans Home | All Java Beans Tutorials | Latest Java Beans Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by aathishankaran
Web Security Issues
The Web User's Perspective
Server-side plug-Ins
The best way to avoid security vulnerabilities with new server
JavaScript Security
Window Object
Working with Status Bar Messages
Retrieving a Portion of a String
Referencing Windows
Math Object
Frame Object
Document Object
Closing Windows
Built-in Object in Javascript
Textarea Object

More Tutorials in Java Beans
Creating a JavaBean to Connect with Google API
Spring Vs EJB ( A feature comparison)
What is EJB server and what are EJB Components?
JavaBeans Basic Concepts
JavaBeans vs. Custom Tags
Java Beans and the Expression Language
A sample that shows Java Beans, Servlets and JSP working together
Advantages of Java Beans
Design Patterns for Properties in a Java Bean
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
ADVANTAGES OF EJB
Steps to develop EJB Environment
EJB is a server side component:
Entity Bean
History Of Java

More Latest News
Most Viewed Articles (in Java Beans )
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
A sample that shows Java Beans, Servlets and JSP working together
Advantages of Java Beans
Java Beans and the Expression Language
What is EJB server and what are EJB Components?
Spring Vs EJB ( A feature comparison)
Reusable component
Design Patterns for Properties in a Java Bean
JavaBeans Basic Concepts
ADVANTAGES OF EJB
Steps to develop EJB Environment
Entity Bean
EJB is a server side component:
History Of Java
JavaBeans vs. Custom Tags
Most Emailed Articles (in Java Beans)
Steps to develop EJB Environment
JavaBeans vs. Custom Tags
Reusable component
ADVANTAGES OF EJB
EJB is a server side component:
Entity Bean
History Of Java
Spring Vs EJB ( A feature comparison)
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Java Beans and the Expression Language
Advantages of Java Beans
Design Patterns for Properties in a Java Bean
A sample that shows Java Beans, Servlets and JSP working together
JavaBeans Basic Concepts
What is EJB server and what are EJB Components?