create OSGI configuration dynamically

Avatar

Avatar

adobecq-venkat

Avatar

adobecq-venkat

adobecq-venkat

15-11-2020

HI,

I need to create a JDBC configuration dynamically like build time. 

This can be using either OSGI config API  or properties etc..

Any help would be appreciated.

 

 

# Configuration created by Apache Sling JCR Installer
jdbc.password="XYZZZ"
jdbc.driver.class="com.microsoft.sqlserver.jdbc.SQLServerDriver"
datasource.name="testjdbc"
jdbc.connection.uri=""
jdbc.validation.query=""
datasource.svc.properties=[""]
default.readonly=B"false"
default.autocommit=B"true"
jdbc.username="app_optout"
pool.size=L"50"
pool.max.wait.msec=L"20000"

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Manjunath_K

Avatar

Manjunath_K

Manjunath_K

16-11-2020

Hi @adobecq-venkat ,

You can add this JDBC config xml in runmodes with the property values as you mentioned above & these runmode configs will be deployed part of build.

Answers (1)

Answers (1)