What do you suggest? Isn't this a common solution in a pooling situation?

I implemented a pool, that stores as many connections as possible, but only for let's say 60 seconds.


If there is high demand, there can be many connections in the pool, if there is low demand, the pool-size will shrink.

Of course, one could limit the maximum number of connection, and set a minimum size. I always check with "isClosed()" if a connection is still alive before i return it to the caller.

A fixed-sized pool is not what i would call a good idea.

_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to