File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes HFEJB doubt  on Page 318? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "HFEJB doubt  on Page 318?" Watch "HFEJB doubt  on Page 318?" New topic

HFEJB doubt on Page 318?

Hai Lin
Ranch Hand

Joined: May 23, 2004
Posts: 79
Hi All,
On page 318 of HFEJB, the example CustomerBeanCMP seems lack of ejbPostCreate(...). So the example is wrong?
Based on what the book said on Page 312, we must match each create() with two methods: ejbCreate() and ejbPostCreate().

Anyone could confirm my doubt?


Sajeev Paul

Joined: Apr 05, 2004
Posts: 3
Can you send me that example, plz.

Looks you have good understanding abt. ejbCreate() and ejbPostCreate() methods. What you are sating is right for EntityBeans.

Good Luck .......

Regards<br />Sajeev Paul
Lionel Orellana
Ranch Hand

Joined: Mar 19, 2004
Posts: 87
I was just going to ask the exact same question ... it is supposed to be the COMPLETE code for the CustomerBeanCMP, however the postcreate method is missing ... from previous pages in the book it looks like you MUST have the postcreate method but this makes me wonder if you simply CAN have it ... hopefuly someone will come up and clarify this ...

Lionel Orellana
Ranch Hand

Joined: Mar 19, 2004
Posts: 87
I found this

It is an error in the book ..
I agree. Here's the link:
subject: HFEJB doubt on Page 318?
It's not a secret anymore!