• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejbCreate() method

 
srinivas k
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i have a doubt, no where in the enterprisebean/entity bean/session bean interface we find ejbCreate() method declaration even then the implementation of ejbcreate() is a must in the bean class why is it so?and where is this ejbcreate method present?
ok then thanks in advance
 
yi zhu
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ejbCreate(...) is not mandatory for entity beans!
For statful session beans only the author of beans knows the signature of ejbCreate(...) method.
 
Bill Morrison
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right, you won't find ejbCreate() in javax.ejb.EntityBean or javax.ebj.SessionBean, nor will you find the corresponding create() in javax.ejb.EJBHome interfaces. But, this doesn't mean that you don't need to implement them. The responsibility of the Bean Provider to implement ejbCreate<METHOD> in session beans and entity beans (where it is optional) is addressed in the EJB Specification.
Regards,
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic