Hi,
My purpose is encrypt the database password as Jira uses raw Password in dbconfig.xml /JiraDS.properties we tried to achieve the same by following the below steps.
1. we configured our factory class in server.xml file , to decrypt the encrypted password to the datasource and try to use the JNDI resource name in dbconfig.xml. However we observed that the factory class is ignored.
We always see that username and password are getting picked up from JiraDS.properties, in case of h2db ,where as in oracle database we are unable to use JNDI resource name itself in dbconfig.xml.
2. We changed the password of default user "SA" to some other password ,post which we are unable to connect to "h2" database through "h2 GUI".
However Jira is able to successfully make a connection to h2 database during server start up with empty password in JiraDS.properties.
In short what we have observed is JiraDS.properties is taking precedence over JNDI Data source in any case,
Kindly suggest how we can use our own JNDI datasource instead of using raw password.
Regards,
Venkatesh.