cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to configure JNDI setup for DataHub

Former Member
0 Likes
346

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

Accepted Solutions (0)

Answers (1)

Answers (1)

arvind-kumar_avinash
Active Contributor
0 Likes

You need to mention the following in the local.properties file:

 db.pool.fromJNDI=java:comp/env/jdbc/DatabaseName
 db.pool.fromJNDI.dbtype=mysql