Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

ejbCreate() method

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
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.
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.
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic