-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OSGi support to mssql-jdbc #24
Comments
Appreciate your suggestion. We will take this as an enhancement. Thanks for pointing out maven-bundle-plugins. |
Actually OSGi support would include more than a Yes, Microsoft Azure Keyvault may be a bit more involved but it's an optional dependency so it could be left out in a first approach. |
Thanks @marschall for pointing out. I was under impression that we need implementation(s) only for OSGI Compliant. Task List for Investigation:
Able to create OSGI Specific Headers with Transitive dependency. |
The Azure Keyvault solution on your end may actually be quite simple. IMHO the correct solution would be a combination of |
When will 6.1.6 be released? |
@lamperi : Used Apache Felix maven-bundle-plugin to generate OSGI specific headers. Tested for both profiles (JDK 1.7 & 1.8). You can refer pom.xml from OSGI branch. Can you verify this OSGI headers suffice your purpose or not?
|
@v-nisidh a couple of things caught my eye
other than that it looks find to me. |
Thanks @marschall, for pointing out @marschall & @lamperi : For this release we are not considering implementation of DataSourceFactory & registering as a service due to following reasons:
I will definitely consider your last point while implementing BundleActivator and DataSourceFactory for OSGI I opened PR #218 for adding OSGI headers. |
Thanks. I checked the PR branch on my own machine, and it bundle goes active in Karaf correctly without wrapping. I don't have SQL Server setup currently but it looks fine otherwise! |
OSGi support basically means adding OSGI specific headers to MANIFEST.MF done automatically by maven-bundle-plugin from Apache Felix or bnd-maven-plugin from Bndtools, so that the driver could be loaded in OSGi environmental.
One thing I see as problematic is the dependency to Microsoft Azure Keyvault, which is also not OSGI compatible and their plans do not promise any good: Azure/azure-sdk-for-java#471. Transitive Microsoft dependencies also seem to be non-OSGi compatible. Apache HTTPClient dependency should be ok as the jar is OSGi ready, although the HTTP client dependency seems to be only because of Azure connections.
The text was updated successfully, but these errors were encountered: