• Post Reply Bookmark Topic Watch Topic
  • New Topic

CMP philosophy for EJB 2.0  RSS feed

 
parag Chatterjee
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am new to EJB 2.0.
Can anybody tell me whether I have to write the implementation of the abstract entity bean for database persistance or whether the deployment descriptor takes care of it.
 
Ralf Allar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With CMP in EJB2.0 you'll only have to define the fields in your entity bean through the deployment descriptor. In your entity bean class you only got your getter/setter methods and no fields. These fields are defined through the methods and are called virtual fields.
Hence your methods are all abstract in the bean class, the container will override them, providing all necessary actions to you. This is also called implicit middleware...
But I would suggest, that you read a good book on EJBs like EJB Design Patterns: Advanced Patterns, Processes, and Idioms by Floyd Marinescu
Have fun,
Ralf
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are also several free EJB guides and tutorials.
(Some are listed in my signature below)
There are quite a few out there.
[ September 23, 2002: Message edited by: Rick Hightower ]
 
Anamika Singh
Ranch Hand
Posts: 67
IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rick
Those were some great links.Your 4 part EJB CMP/CMR EJB QL was excellent .....just what a programmer needs to know !
[ September 25, 2002: Message edited by: Anamika Singh ]
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I'll add your comment to the growing list of comments about the tutorial.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!