Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

V IMP Kathy & Bert: Is Stateless Session Bean Creation Server Specific???

 
AmitKumar Jain
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had read during my SCBCD certification that Stateless session bean instances are created during server startup and NOT when client calls create on the bean.

However, when I tested this functionality in Bea Weblogic and IBM Websphere Application Servers, then I found that ejbCreate() and setSessionContext() were called only when I invoked a business method on the bean.
Does this prove that this is server specific and has to be configured and is not mandated by the specification??

I had to face embarrassment due to this during an interview.
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had read during my SCBCD certification that Stateless session bean instances are created during server startup and NOT when client calls create on the bean.


Not exactly.Its upto the container implementation.It was clearly told in page no 102 in head first EJB
 
cheenu Dev
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had to face embarrassment due to this during an interview.

sorry to hear so.
and as to your question ,
and is not mandated by the specification??

yes, it is not mandated.
you can see the spec if you need.
 
AmitKumar Jain
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I missed that point on Pg 102 in HFEJB....

But I went through the spec again today...

On Pg. 91,92 ... section 7.9.1... the Object Interaction Diagram clearly shows that bean instance is not created when client calls create. Why isn't it specified there that this scenario may vary on Container implementation by a Vendor?

cheenu.. can you tell me where else it is mentioned in the spec?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic