Re: JavaBean and database connection
Friday, August 30, 2002 04:39 AM
Is not quite a good policy to keep the DB connection alive. Anyway, if you choose that, you should keep the "connection alive" within a session scope object (bean).
A better policy is to open/perform DB operations/close the DB connection in any of the paged scope beans.
On pooled connection drivers/DB's is definitely the best approach.