Is there a way to add an additional properties file to the startup of Apache 
Tomcat, so that server.xml and context.xml can reference the values like we do 
with catalina.properties?

For instance:

application.properties:

my.user=foo
my.password=bar

context.xml:

…
    <Resource … " type="javax.sql.DataSource" … username="${my.user}" 
password="${my.password}” …
/>
…

I would use catalina.properties for additional key/value pairs, but I really do 
not want to modify that file.

Regards,

William Crowell


This e-mail may contain information that is privileged or confidential. If you 
are not the intended recipient, please delete the e-mail and any attachments 
and notify us immediately.

Reply via email to