How to get db.properties values from outside(dynamically) ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2017 07:34 AM
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.
Labels:
- Labels:
-
Alfresco Process Services
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2017 03:03 PM
Yes, use the JNDI option if you want to externalize your database connection details:
Activiti User Guide - JNDI datasource Configuation
Greg
