Win a copy of AWS Security this week in the Cloud/Virtualization 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

When is ejbCreate() called?

Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For stateful session beans, container makes the EJB object and SessionContext. Then container creates the bean instance. Container calls setSessionContext() link the bean to its context.

Also the container links the bean to its EJB object by calling ejbCreate(). Is this correct? if not when is ejbCreate() called?

For stateless session beans, when exactly is ejbCreate() method called?
I ask this question because, in HFEJB it is mentioned that bean can get a reference to its EJBObject from ejbCreate() method for a stateless bean. How is that possible? can anyone please clarify?

Thanks in advance.
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some of your questions are answered here.
The fastest and most reliable components of any system are those that are not there. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic