By: aathishankaran in EJB Tutorials on 2007年02月20日 [フレーム]
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.
This policy contains information about your privacy. By posting, you are declaring that you understand this policy:
This policy is subject to change at any time and without notice.
These terms and conditions contain rules about posting comments. By submitting a comment, you are declaring that you agree with these rules:
Failure to comply with these rules may result in being banned from submitting further comments.
These terms and conditions are subject to change at any time and without notice.
Most Viewed Articles (in EJB )
Difference Between Stateful and Stateless Session Beans
Difference Between Session and Entity Beans
Required Classes/Interfaces That Must Be Provided for an Enterprise JavaBeans Component
Steps to develop EJB Environment
Latest Articles (in EJB)
© 2023 Java-samples.com
Tutorial Archive: Data Science React Native Android AJAX ASP.net C C++ C# Cocoa Cloud Computing EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Trends WebServices XML Office 365 Hibernate
Latest Tutorials on: Data Science React Native Android AJAX ASP.net C Cocoa C++ C# EJB Errors Java Certification Interview iPhone Javascript JSF JSP Java Beans J2ME JDBC Linux Mac OS X MySQL Perl PHP Python Ruby SAP VB.net EJB Struts Cloud Computing WebServices XML Office 365 Hibernate