How to get db.properties values from outside(dynamically) ?

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

How to get db.properties values from outside(dynamically) ?

This is my db.properties file.


db
=oracle
jdbc.driver=oracle.jdbc.driver.OracleDriver
jdbc.url=jdbc:oracle:thin:@oracle:1521:XE
jdbc.username=ACTIVITI
jdbc.password=ACTIVITI

Is there a way to get these db.properties values dynamically ? 
For example, host may be oracle or localhost or some_ip;
username may be ACTIVITI or anyotherusername (same situation with password),
port may be 1521 or 1531 or sth like that. 

1 Reply
Highlighted
Intermediate

Re: How to get db.properties values from outside(dynamically) ?

Yes, use the JNDI option if you want to externalize your database connection details:
Activiti User Guide - JNDI datasource Configuation 

Greg