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. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Dec 3, 2008 at 12:37 AM, Anton Veretennikov < [EMAIL PROTECTED]> wrote: > Hello Wicket users, > > I test my app on local Tomcat and update it frequently on remote. They > have different MySQL DB connection params. > What is the easiest way to decide which params to choose depending on > where Tomcat is running without editing of xml-files? > > I need to know it during init() of Application because I must run > upgrades of db tables / data when new version of app is uploaded. > Tomcat thinks it is running on "localhost" on remote server > (configured as Proxy Pass). > > Thank you > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >