|
From: bryan h. <bry...@os...> - 2003-03-21 12:05:12
|
Hello all, Today I am checking in the org.openlms.util.db.DbConnectionFactory and the org.openlms.util.db.LMSDbProperties classes. The ConnectionFactory encapsulates the getting of a database connection. By changing a field in the LMSDbProperties class it is possible to switch from container managed database connection to JDBC based database connection. My reasoning is that you can switch this boolean flag so that you can work on the application in a web container ( such as tomcat under netbeans ) However when it comes to deployment you can flick the switch back again ( I will enhance this class at a later stage to use a properties file ). Another advantage is that it will make the code cleaner, this advantage will be realised by the fact that we will not have all that ugly database connection/getting context and hence datasource crap all over our code (I think it is bad for readability) Thoughts anyone ? -- Bryan Hunt Systems Manager Ossidian Technologies www.ossidian.com 17 Carysfort Avenue, Blackrock, Co Dublin IRELAND |