You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Paul Hammant <Pa...@yahoo.com> on 2001/09/11 00:10:02 UTC
.sar files not always deployable.
The Acme.serve HTTP server that I am about to upload to SourceForge
(their CVS is way mopre complicated than Apache's) contains a config.xml
line:
<root-location>c:/download/</root-location>
This is the root of the HTTP file system as mapped to the server's
underlying file system. Two things jump out at you 1) it's a windows
specific file location and 2) it's my downloads directory (not everyone
has that dir, nor would want to serve it).
Should we in fact have some deferred configutration concepts. The
Avalon .sar installer spots them and prompts for actual values :
<http-server>
<port>8080</port>
<bind>127.0.0.1</bind>
<root-location deferred-code="root-locn"/>
<helloworldhandler>
<connectiontimeout>360000</connectiontimeout>
</helloworldhandler>
</http-server>
<deferred-configuration>
<root-locn type="filesystem-path">
<default>c:/downloads/</default>
<message>The Webserver's index.html page will map to a local file
system direcory. That directory and below will be served to all
browsers</message>
</root-locn>
</deferred-configuration>
The default ConfigurationPrompter could be console. Another
implementation could be some "message queue" concept. Other people may
choose to resolve them prior to deployment, with a command line
configuration resolver. Then again, maybe .sar deployment is not meant
to be a no-brainer, it's supposed to be a high-art "assembler" duty.
Thoughts?
- Paul H
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
Re: .sar files not always deployable.
Posted by Peter Donald <do...@apache.org>.
On Tue, 11 Sep 2001 08:10, Paul Hammant wrote:
> The Acme.serve HTTP server that I am about to upload to SourceForge
> (their CVS is way mopre complicated than Apache's) contains a config.xml
> line:
>
> <root-location>c:/download/</root-location>
>
> This is the root of the HTTP file system as mapped to the server's
> underlying file system. Two things jump out at you 1) it's a windows
> specific file location and 2) it's my downloads directory (not everyone
> has that dir, nor would want to serve it).
>
> Should we in fact have some deferred configutration concepts. The
> Avalon .sar installer spots them and prompts for actual values :
>
> <http-server>
> <port>8080</port>
> <bind>127.0.0.1</bind>
> <root-location deferred-code="root-locn"/>
> <helloworldhandler>
> <connectiontimeout>360000</connectiontimeout>
> </helloworldhandler>
> </http-server>
>
> <deferred-configuration>
> <root-locn type="filesystem-path">
> <default>c:/downloads/</default>
> <message>The Webserver's index.html page will map to a local file
> system direcory. That directory and below will be served to all
> browsers</message>
> </root-locn>
> </deferred-configuration>
Sounds a lot like the notion of having a separate config template for each
block. This template would allow you to just plug in values that need
changing and would probably come with a set of reasonable defaults.
> The default ConfigurationPrompter could be console. Another
> implementation could be some "message queue" concept. Other people may
> choose to resolve them prior to deployment, with a command line
> configuration resolver. Then again, maybe .sar deployment is not meant
> to be a no-brainer, it's supposed to be a high-art "assembler" duty.
I am +1 for having .sars as plug and play and thus the config.xml/descriptors
should be completely resolved prior to deployment. Mainly as this is the same
technique that servlets/ejbs/other use and I think we should follow suit. We
can always have an extra stage during installation that expands template or
whatnot.
--
Cheers,
Pete
--------------------------------------------------
"An intellectual is someone who has been educated
beyond their intelligence."
--------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org