File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat Environment Variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Environment Variables" Watch "Tomcat Environment Variables" New topic

Tomcat Environment Variables

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Right now I have configuration files for different development environments. Dev, Stage, and Prod. When my webapp starts I read in a variable I set in tomcat to determine which config file(s) I need.

What I'd like to do is specify the variable when I start Tomcat rather than in the startup.bat/sh file.

Any tips?


GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: Tomcat Environment Variables
jQuery in Action, 3rd edition