Page 1 of 1

Pooling with multithreaded application ?

Posted: Mon 18 Sep 2006 16:55
by RH
Hello

I have a multithreaded application, where a new TConnection instance is initialized within each new thread. I have a very simple question:

The very first thread initializes a connection, then when the thread is finished execution, it is terminated and the TConnection is freed.

If Pooling is set to TRUE, does that mean that a subsequent thread would reuse the connection initialized in the first thread ? eventhough that the TConnection instance of the first thread is freed ?

In other words: will the connection remain in the pool, even after that the TConnection that initialized it is destroyd ?

Thanks

Kind Regards

Posted: Tue 19 Sep 2006 12:42
by Antaeus
Yes, connection will remain in pool even if the component that has created this connection is destroyed. It will remain in pool while ConnectionLifeTime interval exceeded or application closed.

Posted: Tue 19 Sep 2006 18:45
by RH
Thanks alot :D