Forums Register Login

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

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
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?
Let's get him boys! We'll make him read this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 477 times.
Similar Threads
Sessions
create method in home interface (stateless session bean)
Disadvatages of SFSB
Question regarding Lifecycle of STATELESS session bean.
ejbRemove??
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:56:25.