> Reading the webware doc and website, I found nothing to take care about
> external connections handling.
> Do I have to manage my own opened connections pool which is accessed by
> all threads concurrently?
> Should there be a connection per thread?
> Is there a Thread instance, so I can store a connection handler?
There are two possibilities. Either as you suggested, you create one
connection per thread, or you use a connection pool. The former makes
sense when you configure Webware in AppServer.config with a fixed number
of threads. If it is configured dynamic, so that threads are constantly
created and destroyed, it is better to use the connection pool approach.
MiscUtils.DBPool provides a simple connection pool. DBUtils
(www.w4py.org/DBUtils) provides a more sophisticated solution and
support for both, connection pool and thread affine connections.
-- Christoph
|