Mark H. Wood wrote on 09.06.2010 17:03:
On Wed, Jun 09, 2010 at 04:19:17PM +0200, Thomas Kloeber wrote:
the problems I have are:
* the IP address of the backing database is one of the parameters
that needs to be configured (in context.xml), so I can't get any
data from the db unless it is configured...
* the other confgurables (SPNEGO and kerberos stuff) are in web.xml
and as long as they are not set up correct, my app won't start!
* sounds like a catch 22 to me ...
Context parameter pointing to a properties file somewhere? Then you
can put the settings wherever you want them, and move them anytime
with minimal fuss. Install the app. outside of any appBase and use an
external Context file
($CATALINA_BASE/conf/Catalina/<hostname>/<contextname>.xml)
to point to it and provide the parameter's value:
<Context docBase='/some/where/myapp'>
<Parameter name='configuration'
value='/some/where/else/myapp.properties'
description='where the configurables are'/>
</Context>
You could just define the configurables as separate Parameters, but I
would keep them separated from configuration of the servlet container
(which the above is) if possible. Tastes vary.
sounds like a good idea, but what about the web.xml stuff? Can I use
some redirection there as well?
Caldarale, Charles R wrote on 09.06.2010 17:04:
how do you "make changes in context.xml inside archive"?
Unpack it with the jar utility, update, repack. Alternatively, you can supply
the<Context> element in a separate file, and have the admin put that in
conf/Catalina/[host]/[appName].xml after modifying the site-specific attributes.
I was afraid you say something like that, but to me that is why to
complicated/error prone...
David kerber wrote on 09.06.2010 15:45:
Beyond 1-time initial configuration, I would say it is unusual.
that really surprises me. And even for 1-time initial config, how would
you deal with that? What about updates?
Do you really trust some unknown Tomcat admin to do what s/he needs to
do correctly?
Why putting such a burden on her/him?
--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 München
Registergericht: Amtsgericht München, HRB 88283
Geschäftsführer: Albert Fuss
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org