Maybe you should have a look at: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

It describes how to use JNDI for your database connection. In short: the tomcat itself holds the necessary connection data and connects via JNDI to the DB.


Jeremy Thomerson wrote:
There are a myriad of ways, but most are going to include something like:
- read them from a properties file
- configure them in web.xml or tomcat config

It doesn't sound like you're using Spring or similar to configure your
database access, but since I do, I typically use a properties file for the
app that configures various server-or-deployment-specific settings, and
Spring has a mechanism for interpolating those into your Spring config.

I know this is off-topic, but it sounds like you are possibly doing raw
JDBC?  If so, I'd highly recommend NOT doing that.

Hope this helps.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to