Greetings,
Firstly i am using Tomcat 5.5 and Java 1.5. I am writing a simple web app
but now my problem is the "setup" for the dbcp.

I have set up the app with the resource tag in the context.xml file in the
META-INF folder and it all works fine. Now for my problem... I would like to
be able to change the username, password, driver class etc from the app
itself (in order for people to point to different databases dynamically). My
first idea was to do all these settings in a properties file but i cant find
a way to get those property values into the context.xml. I am also open to
setting up the resource from the code itself but cannot find a way to do
this. Does anyone have any suggestions or ideas. I have done allot of
Googling with not luck.


Many thanks,

Paul Selibas

Reply via email to