RE: [5.0] Getting some defaults from system properties

2003-11-13 Thread Shapira, Yoav

Howdy,
Seems like a reasonable increase in configuration flexibility without
introducing backwards compatibility issues nor user confusion.  +1.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 9:31 AM
To: Tomcat Developers List
Subject: [5.0] Getting some defaults from system properties

Hi,

This is a little similar to the Ant-like properties for server.xml.

The problem: the allowLinking and caseSensitivity flags of
FileDirContext, which can be set per context using the Resources
element, but it's kind of annoying to do it server wide.

All defaults for flags (and others) are hardcoded, which is logical.
However, for some, it would be convinient to be able to set them in a
global way.

For the naming conventions for the property names, I plan to use:
fully_qualified_class_name.field_name

The algorithm is the following for a field:
- look up the appropriate system property
- if defined, use it
- otherwise, use the old defaults

I don't think that many fields would be defaulted using this.

Additionally, to allow easily setting system properties, all the
properties from catalina.properties will be set as system properties.
Since catalina.properties is not used in embedded mode (it is loaded
only by Bootstrap), there should be zero impact for this use case.

Comments ?

Remy



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [5.0] Getting some defaults from system properties

2003-11-13 Thread Glenn Nielsen
Couldn't these be set using the DefaultContext?

Regards,

Glenn

Remy Maucherat wrote:
Hi,

This is a little similar to the Ant-like properties for server.xml.

The problem: the allowLinking and caseSensitivity flags of 
FileDirContext, which can be set per context using the Resources 
element, but it's kind of annoying to do it server wide.

All defaults for flags (and others) are hardcoded, which is logical. 
However, for some, it would be convinient to be able to set them in a 
global way.

For the naming conventions for the property names, I plan to use:
fully_qualified_class_name.field_name
The algorithm is the following for a field:
- look up the appropriate system property
- if defined, use it
- otherwise, use the old defaults
I don't think that many fields would be defaulted using this.

Additionally, to allow easily setting system properties, all the 
properties from catalina.properties will be set as system properties. 
Since catalina.properties is not used in embedded mode (it is loaded 
only by Bootstrap), there should be zero impact for this use case.

Comments ?

Remy



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [5.0] Getting some defaults from system properties

2003-11-13 Thread Remy Maucherat
Glenn Nielsen wrote:
Couldn't these be set using the DefaultContext?
Why not ?
It seems like a better fit.
Remy



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [5.0] Getting some defaults from system properties

2003-11-13 Thread Glenn Nielsen


Remy Maucherat wrote:
Glenn Nielsen wrote:

Couldn't these be set using the DefaultContext?


Why not ?
It seems like a better fit.
In what way?

Having one method to configure defaults for Context's seems better
than having multiple methods. And keeping the configuration of these
in server.xml keeps everything consistent.
Regards,

Glenn

--
Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder|
MOREnet System Programming   |  * if iz ina coment.  |
Missouri Research and Education Network  |  */   |
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [5.0] Getting some defaults from system properties

2003-11-13 Thread Remy Maucherat
Glenn Nielsen wrote:
Remy Maucherat wrote:

Glenn Nielsen wrote:

Couldn't these be set using the DefaultContext?
Why not ?
It seems like a better fit.
In what way?
Your way.

Remy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [5.0] Getting some defaults from system properties

2003-11-13 Thread Glenn Nielsen
Oops, I misread your reply. :-)

Glenn

Remy Maucherat wrote:
Glenn Nielsen wrote:

Remy Maucherat wrote:

Glenn Nielsen wrote:

Couldn't these be set using the DefaultContext?


Why not ?
It seems like a better fit.


In what way?

--
Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder|
MOREnet System Programming   |  * if iz ina coment.  |
Missouri Research and Education Network  |  */   |
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]