tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From frederik gens <>
Subject NEWBIE: flexible declaration of a database URL
Date Fri, 18 Jun 2004 09:19:46 GMT
I'm currently developing a JSP/Servlet/JDBC application with Tomcat. In several classes called
by servlets, I declare the URL which identify the database in order to open the connection.

My question is: what is the best way to declare this URL only once, for example in a file,
or in an environment variable. Therefore, the classes always call this variable. Changing
the place of the database just requires to change the URL in one place.
Thanks in advance!

Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message