We would like to keep our web-app, including the web.xml file, the same as
we push it through development, staging, and into production. Our app uses
separate image servers, database servers and EJB servers (and of course
these differ depending on weather the app is in devel, staging, or
production). We store this config info as application variables, so we can
change it from server to server as we push it out. That's why we'd like to
put the variables elsewhere on each sever that the web.xml file. Thanks for
the info! We'll give it a look. If anyone else has any ides, please feel
free to add!
-Jeff
> -----Original Message-----
> From: Scott Stirling [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 13, 2000 6:41 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Global Application Variables
>
>
> 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.
------------------------------------------------------------------------------
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.