• 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Is Specification not reasonable on this point?

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all
I could not understand one point in "7.8.2 Operations allowed in the methods of a stateless session bean class", EJB Spec 2.0. In "table 3", it illustrates that "getEJBObject" and "getEJBLocalObject" are permitted in "ejbCreate" and "ejbRemove" methods.
As we know, for stateless session bean, the ejbCreate and ejbRemove are called by the container, on the time when the bean is in pool state and is NOT associated with any EJBObject/EJBLocalObject. So, how can we get a valid EJBObject/EJBLocalObject reference in "ejbCreate" and "ejbRemove"?
Could anyone give me a comment? Thanks.
 
Ranch Hand
Posts: 8943
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

As we know, for stateless session bean, the ejbCreate and ejbRemove are called by the container, on the time when the bean is in pool state and is NOT associated with any EJBObject/EJBLocalObject. So, how can we get a valid EJBObject/EJBLocalObject reference in "ejbCreate" and "ejbRemove"?


Just read the OID in page 92 of the spec.
 
I'm so happy! And I wish to make this tiny ad happy too:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic