You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Green <ja...@gmail.com> on 2013/05/23 12:00:25 UTC

Non-invasive configuration by extension?

Hi,

I need to configure TomEE to work with SSL connections. I see Tomcat
documentation talking about how to edit the server.xml file.

Is it possible to supply a small fragment XML file that Tomcat's
configuration includes, similar to the way Linux distros now have software
that looks in conf.d files? That way I can have the original XML file
untouched and merely extend it to our own needs?

Otherwise I'm looking at having to merge in changes at later points - more
work for us.

Thanks,

James

Re: Non-invasive configuration by extension?

Posted by Konstantin Kolinko <kn...@gmail.com>.
2013/5/23 James Green <ja...@gmail.com>:
> Hi,
>
> I need to configure TomEE to work with SSL connections. I see Tomcat
> documentation talking about how to edit the server.xml file.
>
> Is it possible to supply a small fragment XML file that Tomcat's
> configuration includes, similar to the way Linux distros now have software
> that looks in conf.d files? That way I can have the original XML file
> untouched and merely extend it to our own needs?
>
> Otherwise I'm looking at having to merge in changes at later points - more
> work for us.
>


No. There is no such feature.

Similar ones:

1. It is possible to use XML entities expansion to externalize some
part of server.xml, but this involves editing of the original file,

An example here:
http://wiki.apache.org/tomcat/FAQ/Password

2. Application-specific settings go into application-specific
"META-INF/context.xml" files.

But you cannot use those to configure connectors.

3. You should know about running with separate CATALINA_HOME and CATALINA_BASE.

You can leave pristine files in CATALINA_HOME/conf as a reference.
Note that only the CATALINA_BASE ones will be used at run time.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org