posted 17 years ago
I would probably pass the connection pool into the DAO factory. The factory then would pass it on to the DAO when it gets created. When the DAO needs a connection, i.e. in one of the insert or update methods, it gets a connection from the pool, uses it, and releases it back to the pool.
Does that make sense?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus