• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFEJB doubt on Page 318?

 
Hai Lin
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks.

Hai
 
Sajeev Paul
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .......

 
Lionel Orellana
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...

cheers
 
Lionel Orellana
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this

It is an error in the book ..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic