Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

ejbCreate() and ejbPostcreate() difference

  Asked By: Lucas    Date: Mar 14    Category: Java    Views: 801
  

i am asked in interviews about the difference between ejbCreate() and
ejbPostcreate() .
pls give me the exact differences and when each method is called.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Samuel Costa     Answered On: Mar 14

Why don't you just read the EJB tutorials on java.sun.com? You'll get a more
accurate description there then here.

 
Answer #2    Answered By: Dirck Jansen     Answered On: Mar 14

Here is one of the major basic difference.

In ejbCreate the identity of the bean is not available. In other
words the primary key is not accessible ( or generated ) in
ejbCreate. While in ejbPostCreate the bean has access to its own
primary key and the EJB object.

 
Didn't find what you were looking for? Find more on ejbCreate() and ejbPostcreate() difference Or get search suggestion and latest updates.