• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bean things you can do from a stateless bean's ejbCreate() and ejbRemove() methods  RSS feed

 
Ben Wilson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the book "Head First EJB" (p. 228) it is possible to use your SessionContext to get a reference to your EJB object from ejbCreate() and ejbRemove() for stateless session beans. Is this correct ? I thought a bean isn't linked to a particular EJB object until a client calls a business method. Then what EJB object would you get a reference to when ejbCreate() is invoked ?

Btw, it's a great book, big thanks to the authors
 
Vagner Freitas
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ben,

Take a look at this thread.

Vagner
JavaRanch
 
Ben Wilson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Vagner
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!