tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Rudnicki <>
Subject Re: System properties
Date Mon, 20 Nov 2000 03:11:07 GMT

> From the looks of things, it is just the way it is, although I was hoping
> the there would be some way to put stuff in the web.xml file, maybe in the
> servlet tag like:
> <system-property>
> <name>myproperty</name>
> <value>42</value>
> </system-property>
> Anyone think this is a good idea, or am I talking rubbish?

It's a bad idea.  Keep your web-apps encapsulated.

There is two ways to think about a "global" service:
- providing a service to many servlets, seems like a good thing
- bleeding out dependencies upon those that don't need them and allowing
access to those that shouldn't be using it.  bad things

> PS. static, bad?  It is useful! ...

she said and meant _static initializers_ = bad, not static methods, and
members.  I concur.


View raw message