Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

CMP philosophy for EJB 2.0

 
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.
 
Greenhorn
Posts: 9
Mac VI Editor Linux
  • 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
 
Author
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 ]
 
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
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.
    Bookmark Topic Watch Topic
  • New Topic