2019 Jun 03 1:56 PM - edited 2024 Feb 04 6:38 AM
Hi Experts,
I have an requirement to use JNDI data source to encrypt DataBase password.
I have updated tomcat/conf/server.xml with,
<Resource name="jdbc/DatabaseName" auth="Container" factory="com.sap.cx.es.datafactory.EncryptedDataSourceFactory"
maxActive="50" maxIdle="30" maxWait="10000"
username="hybris_datahub" password="hybris_datahub"
driverClassName="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
url="jdbc:mysql://localhost/integration?useConfigs=maxPerformance"/>
and Commented below properties, #dataSource.className=com.mysql.jdbc.jdbc2.optional.MysqlDataSource #dataSource.jdbcUrl=jdbc:mysql://localhost/integration?useConfigs=maxPerformance #dataSource.username=hybris_datahub #dataSource.password= hybris_datahub
At this time it is taking hsql database.
Can some once please help me how to configure JNDI setup for DataHub to encrypt DB password.
Thanks Govind
Request clarification before answering.
You need to mention the following in the local.properties file:
db.pool.fromJNDI=java:comp/env/jdbc/DatabaseName
db.pool.fromJNDI.dbtype=mysql
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.