Spring version : 1.2.2
I'm using AOP in Spring to create a pool of object (in my case Corba connection) with CommonsPoolTargetSource.
I have set the max size of the pool to 25, I would also like to initialize some of the connection - 10 for example - so that my application perfoms better since 10 connections are ready to use.
Unfortunately I haven't found any property to set in CommonsPoolTargetSource to initialize a number of object of the pool.
But in GenericObjectPool (a class from Jakarta Commons Pool) on which CommonsPoolTargetSource relyies on, you can set minIdle property which define the number of object in pool instanciated and ready for use - That's exactly what I want to do !
So my questions are :
1 - Is there a direct solution to set minIdle property or something equivalent ?
2 - Is there a reason not to have exposed minIdle property (and all the other properties of GenericObjectPool) ?
I'm thinking of subclassing CommonsPoolTargetSource and expose minIdle property but IMHO exposing directly minIdle properties in CommonsPoolTargetSource should have been the preferred solution.
I may have missed something that's why I'm asking for your lights.