Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Questions reg. ejbCreate()

 
yamini nadella
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(1) ejbCreate() is not part of SessionBean or EntityBean interfaces. Then why its definition is compulsory?
(2) ejbCreate() should have suitable create() method in EJBHome. is it means when we call create() method of EJBHome then it calls ejbCreate() of bean ?
(3)instead of create() method can I put a name like make() and ejbHome() in EJBHome and bean?


Regards,
yamini
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The whole ejbCreate thing isn't part of the interfaces, it's part of the EJB spec (proper) ... I realize technically the interfaces are part of the spec, but you know what I'm talking about. For one thing, a bean can have a whole mess of ejbCreates in it ... hard to put all those in an interface, eh?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic