Abstract bean classes in EJB 2.0
 Technote (troubleshooting)
 
Problem(Abstract)
In EJB™ 2.0, should all the Container Managed Persistence (CMP) entity bean classes be abstract?
 
Resolving the problem
The EJB 2.0 specification mandates that all CMP entity bean classes will be defined as abstract classes. For an entity bean, the abstract bean class does not define how its state is maintained. The class does not have any fields. The "virtual", container-managed properties are accessed only through accessor methods (getters and setters) which are defined as abstract methods. The concrete bean class is created by the deployment tools and used with the EJB container for interaction with the persistent store.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > EJB Container
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1066954
IBM Group: Software Group
Modified date: Mar 31, 2005