Re: [Fwd: Jetty & System.properties (change request)]

Paul Hammant <[email protected]> Wed, 19 Nov 2003 13:42:30 +0000
Newsgroups gmane.comp.java.spice.devel
Message-ID <[email protected]>
Greg,

> the system property jetty.home is not actually used anywhere
> in the Jetty code base.   It is only used to parameterize the
> configuration files.
>
> If you are coding directly to the Jetty API, there is little
> or no concept of a jetty.home.  Only URL locations of webapplications.
>
> The start.jar mechanism does use jetty.home - but only to assist
> the parameterized config files.
>
Kewl so if we are bean-style instantiating Jetty and configuring it 
ourselves, before deploying multiple WAR files, we are fine, we don;t 
need Jetty.Home. I think that is what we have been doing to date.  The 
reature request is for a niche need for Jetty where we still need it to 
operate monalithically rather than in a bean-like way... sounds a bit 
confusing I guess.

> I just realize that I have written some code to look for a work
> file relative to jetty.home, so I will fix that shortly.
>
> Are you using jetty.xml?
>
No. Controvercially we (inversion-of-control people) believe that 
reusable beans should be able to have an overridable configuration 
scheme. To that end, many support a pluggable config design. I.e. 
something that could have an adaptor from a properties file, or an xml 
document. Or something (ideally) that could take inline config 
(setters).  It aids unit testing apart from anything else. This is 
controvercial to you guys and Jetty is quite mature and we might piss 
you off by selling componentization too much.  We don't want to do that 
so how about we compromise and see a static (ordinarily something else 
we dislike) setter for Jetty.Home.  Not something that start.jar needs 
to call of course. 

Regards,

- Paul

-- 
http://www.thoughtworks.com -> The art of heavy lifting.
Home for many Agile practicing, Open Source activists...



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/