This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Environment Variables" Watch "Tomcat Environment Variables" New topic
Author

Tomcat Environment Variables

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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?

Thanks.


GenRocket - Experts at Building Test Data
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat Environment Variables
 
Similar Threads
Trouble running tomcat on Ubuntu Linux.
Tomcat installation problem
unable to view congrulation page of tomcat 4.1.27
jdk, linux, tomcat and all please help
problem setting up tomcat