Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stateless session bean life cycle

 
Shanthala Baleger
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to get a referene to EJBObject (using SessionContext) in ejbCreate and ejbRemove for a stateless session bean?

when I read HFEJB chpater on session life cycle. I beleive the book says you should be able to get EJBObject during ejbCreate() and ejbRemoval().


I think the answer should be NO. When container creates a bunch of stateless session beans in a pool (without any client asking for it) there are no EJBObjects associated so what will getEJBObject() return?

Please somebody clarify the doubt. We have 5 people in our study group, all of have same doubt.
 
Shanthala Baleger
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After posting this I found another topic on the same lines

"allowed operation in ejbCreate() of stateless session bean ". please reply to that topic
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic