• 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
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Is Specification not reasonable on this point?

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8946
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic