hi,
i have a web application with ten classes. I hava a class DatabaseClass which provides only the connection to the database with a getConnection Method.
I thought to remove this class and put the databse concetion
String to the web.xml fild and let other classes to call
this parameter and make own connnection instead of to create an instance of DatabaseClass. What could be a problem, what is advantage, disadvantage.?
thanks
i have a web application with ten classes. I hava a class DatabaseClass which provides only the connection to the database with a getConnection Method.
I thought to remove this class and put the databse concetion
String to the web.xml fild and let other classes to call
this parameter and make own connnection instead of to create an instance of DatabaseClass. What could be a problem, what is advantage, disadvantage.?
thanks