• 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?
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!