cancel
Showing results for 
Search instead for 
Did you mean: 

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

delimaniac
Champ in-the-making
Champ in-the-making

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 1

gdharley
Elite Collaborator
Elite Collaborator

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

Greg