Hallo!
We are using "apache-tomee-plus-1.7.4".
In the file "conf/tomee.xml" I setup the database resource:

<?xml version="1.0" encoding="UTF-8"?>
<tomee>
 <Deployments dir="apps" /> 
   <Resource id="jdbc/QuvionPool" type="DataSource">    
JdbcDriver org.mariadb.jdbc.Driver    
JdbcUrl jdbc:mariadb://xxxxxxxxxx
UserName xxxxx    
Password xxxxx   
JtaManaged true    
</Resource>
</tomee>


Everthing works fine.

Now we switch to docker and one thing I have to do is to make the db 
configuation more flexibe.
so the "jdbcURL" now comes via a environment variable.

So my question now is: Is it possible to use placeholder in the tomee.xml, like 
${JdbcUrl}, wich will
be replaces during tomee startup with the values from the same named envionment 
variable?


Thank you very much!!

Ingo

Reply via email to