First off, I don't see the reason why you can't use context-params in the
web.xml to achieve your ends.  A web-app is supposed to be portable, after
all.

If you really need to set some props at the server level, you can use the
-Dname=value feature of the JVM.  You can add these via the JMC or by
editing local.properties directly.  Those params will be available to every
web-app in the JVM that runs the server.  You can retrieve them as: String
propName = System.getProperty("propName");

Scott Stirling
Allaire Corporation
http://www.allaire.com/developer/jrunreferencedesk/

> -----Original Message-----
> From: Jeff Stevens [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 13, 2000 1:28 PM
> 
> We are wondering if we can define global application varibles 
> elsewhere than
> in the web.xml file.  Perhaps in local.properties or 
> something.  We would
> like to be able to push everyting in our application directory from
> integration, to staging, to production without modification.  
> We could then
> use local.properties, or some other static file to set 
> certian aplication
> variables that differ from integration, staging and production.
> 
> TIA!
> 
> ---
> Jeff Stevens
> System Engineer
> Tradeout
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to