Monday, December 29, 2003 08:11 PM
I'm in the process of building a database-driven Tomcat webapp. Right now I refer to the DB directly in the servlet code.
connection = DriverManager.getConnection("jdbc:mysql://wherever/test");
But it seems to me there's a smarter place to define the URL. Perhaps in an XML file? Any tips?