• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Questions reg. ejbCreate()

 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic