I have a small problem. I am using a pool of stateless session bean. When I use a pool of 20, the ejbcreate() method is being called 20 times, with no call to the setsessioncontext() method, when weblogic is started. However on client call (create()), the sessioncontext is null.
Now, if i make the pool size to 0, in that case on a client call the(create()) the setsessioncontext() method and then the ejbcreate() methods are called in the sequence.
As per my understanding, setsessioncontext() is called first and then ejbcreate() on a client call of create() on the homeinterface.
This means that when pool size is 0, the behaviour is as expected. However on making the pool size>0, the behaviour is different, particularly that the sessioncontext is null, which seems to be strange. Can somebody explain what is happening and why?
When does weblogic actually call setSessionContext() and when does it call ejbCreate(). Explanations in the light of the above behaviour would be highly appreciated.