I suspect that pax-jdbc is NOT reading *cfg files directly but you provide them through felix-fileinstall as regular OSGi-Configurations and pax-jdbc use osgi-cm to access them.
You have two options:

- hook up on felix-fileinstall by providing a custom ArtifactTransformer and ArtifactInstaller [1] - register a ConfigurationPlugin [2] (just make sure your plugi nstarts before any other services or you refresh the configs of interest after start-up of your service)

[1] http://felix.apache.org/documentation/subprojects/apache-felix-file-install.html [2] https://osgi.org/javadoc/r4v42/org/osgi/service/cm/ConfigurationPlugin.html

Am 10.08.2017 12:27, schrieb Ashish Khaware:

I am using pax-jdbc version 1.0.1 and I have to use database password which needs to be encrypted using some company proprietary based algorithm.

Since, pax-jdbc reads org.ops4j.datasource-*.cfg directly for password, I can't put encrypted password.

Can anyone please suggest at which stage and how I can put the decrypted password (I have logic to decrypt password), so that database connection is successfully established?


OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to