• 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
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

The creation of EJBObject

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The ejbCreate method of a stateless session bean can get a reference for EJBObject through SessionContext. So that means ejbCreate on the stateless session bean lying in pool is called when the client invokes a business method. Before that container just calls constructor and setSessionContext and places it in pool.
Otherwise, if the sequence of constructor, setSessionContext and ejbCreate is called at containers will (before placing bean in the pool) than at that time EJBObject might not exist.
 
Roger Cavallo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Opps someone already posted this question thanks anyway
 
reply
    Bookmark Topic Watch Topic
  • New Topic