create OSGI configuration dynamically | Community
Skip to main content
adobecq-venkat
Level 2
Nov 15, 2020 9:49 PM UTC
Solved

create OSGI configuration dynamically

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"

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Manjunath_K
Manjunath_KAccepted solution
Level 7
Nov 16, 2020 9:10 AM UTC

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.

6 replies

Manjunath_K
Manjunath_KAccepted solution
Level 7
Nov 16, 2020 9:10 AM UTC

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.

Translate
adobecq-venkat
Level 2
Nov 16, 2020 6:16 PM UTC
Thanks for the answer. Can you give an sample file & where it is located in crx de?
Translate
SureshDhulipudi
New Participant
Nov 16, 2020 4:20 AM UTC