Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

ejbPostCreate()

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All;
In a CMP entity bean every create method of home interface must be matched by ejbCreate and ejbPostCreate methods.
On page 318 in HF-EJB ejbPostCreate() is missing in the CustomerBeanCMP.Is that an error or...?
Why is the entity bean declared abstract??
Thanks in advance
Kumar
 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Venkatesh:


On page 318 in HF-EJB ejbPostCreate() is missing in the CustomerBeanCMP.Is that an error or...?


I noticed the same thing and brought it to Kathy Sierra's attention. She confirmed it to be an error.

Why is the entity bean declared abstract??


The spec requires a CMP entity bean to declared abstract. The following can be found in 10.3.1.

� The Bean Provider must define the entity bean class as an abstract class. The container provides
the implementation class that is used at runtime.


The class must be declared as abstract because it contains abstract methods. The container will subclass the entity bean class with a concrete subclass.
I hope this clears things up.
[ January 02, 2004: Message edited by: Keith Rosenfield ]
 
My favorite is a chocolate cupcake with white frosting and tiny ad sprinkles.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic