Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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