You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Manu George <ma...@gmail.com> on 2005/11/17 13:35:44 UTC
OpenEJB Question
Hi,
In the class org.openejb.deployment.AbstractContainerBuilder there is a
method
protected SoftLimitedInstancePool createInstancePool(InstanceFactory
instanceFactory) {
return new SoftLimitedInstancePool(instanceFactory, 1);
}
What pool is this? Is this the pool of Enterprise bean instances. Why is it
set to 1?
Where in the code is the parameter set for the pool size for EJB (Stateful
or Entity).
Thanks
Manu
Re: OpenEJB Question
Posted by Dain Sundstrom <da...@iq80.com>.
On Nov 17, 2005, at 4:35 AM, Manu George wrote:
> Hi,
> In the class
> org.openejb.deployment.AbstractContainerBuilder there is a method
>
> protected SoftLimitedInstancePool createInstancePool
> (InstanceFactory instanceFactory) {
> return new SoftLimitedInstancePool(instanceFactory, 1);
> }
>
> What pool is this? Is this the pool of Enterprise bean instances.
This is the pool of ready instances
> Why is it set to 1?
I don't remember why this is set to one. This pool implementation is
very simple. It is not pre-filled, and the pool only grows when
there are concurrent requests for the same ejb. The pool does hold
hard references to the instances and does not have any automatic
release mechanism, so a very very large number would be a bad idea.
How about we make the default 50?
> Where in the code is the parameter set for the pool size for
> EJB (Stateful or Entity).
I have no idea. Anyone, know if this is configurable?
-dain
Re: OpenEJB Question
Posted by Jeremy Whitlock <jc...@gmail.com>.
Manu,
You could debug this code, as I'm not familiar with it, to see if/when it is
called and who might be calling it. You might want to ask David Blevins.
Take care,
Jeremy
On 11/17/05, Manu George <ma...@gmail.com> wrote:
>
> Hi,
> In the class org.openejb.deployment.AbstractContainerBuilder there is a
> method
>
> protected SoftLimitedInstancePool createInstancePool(InstanceFactory
> instanceFactory) {
> return new SoftLimitedInstancePool(instanceFactory, 1);
> }
>
> What pool is this? Is this the pool of Enterprise bean instances. Why is
> it set to 1?
> Where in the code is the parameter set for the pool size for EJB (Stateful
> or Entity).
>
> Thanks
> Manu
>