Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Instance pooling in Entity Beans

 
Ramesh Talwar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
As per EJB 1.1 in entity beans the instances are pooled
and can be reused.
Then as per specs I understand that if max pool size is
reached and the there certain non-locked instances in
pool and if client tries to create entity bean then
container should reused this instances and associate it
to EJBobject.
But I have observed that in Weblogic 5.1 if pool is full
and new entity bean is created,
Container passivates one of the instances, calls
unsetEntityContext, removes instance from pool
and creates new instance for entity bean class.
Is this the expected behaviour or is weblogic not
following the specs or i am going wrong

Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic