Hi,

     I have a web application running nicely under tomcat, using a
mysql database with a connection pool via DBCP.  The database
connection is configured in catalina_home/conf/server.xml.

     I have been asked to provide a second version of this
application, same functionality, but a separate set of data.  It looks
to me like the simplest bet is just to create a separate database
inside mysql, and set up a second copy of the web application as a
separate webapp under tomcat, pointing at the second database.

     However, the database name is configured in server.xml, not in
web.xml.  Is there any easy way to define the database name at the
web.xml level, or do I need to set up two different JNDI data sources
in server.xml, and tweak the application code in each webapp?

Steven J. Owens
[EMAIL PROTECTED]

"I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt." - Me at http://darksleep.com


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

Reply via email to