Skip to content
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

Please support the Data Service Specification for JDBC™ Technology #737

Open
laeubi opened this issue May 30, 2022 · 3 comments · May be fixed by #738
Open

Please support the Data Service Specification for JDBC™ Technology #737

laeubi opened this issue May 30, 2022 · 3 comments · May be fixed by #738

Comments

@laeubi
Copy link

laeubi commented May 30, 2022

OSGi defines a Data Service Specification for JDBC™ Technology that provides a convenient and save way to obtain DataSources.
Even though it can be implemented by clients it is advised that JDBC driver vendors include an implementation if possible for the following reasons:

  1. The vendor has the best knowledge how to create and configure the participating objects.
  2. Changes in the internal implementation, e.g. refactoring of class names can be reflected an managed easier in the original repository
  3. No gap between deployment of new version and connector code
  4. For non-osgi users, this is completely transparent and the is no need for them to change, but OSGi users will be happy to not reinvent the wheel, the library can just be dropped inside a framework and seaming less integrate, for example with the JPA Specification.

Because of this I'd like to propose adding an implementation for a DataSourceFactory in this repository and provide a PR for this.

FYI @stbischof

@laeubi
Copy link
Author

laeubi commented Jun 4, 2022

@xerial I already created a PR that shows the basic changes for a first version, can you take a look and let me know what you think?

@gotson
Copy link
Collaborator

gotson commented Jul 26, 2022

Hi, could you provide context on osgi? Who's using it, how, etc? I any other jdbc drivers support this?

@laeubi
Copy link
Author

laeubi commented Jul 26, 2022

Hi, could you provide context on osgi?

You can find a short introduction here: http://docs.osgi.org/specification/osgi.core/8.0.0/framework.module.html#d0e1755
Actually, beside some implementation of a standard java-interface and some extra headers in the manifest nothing will change, so an OSGi-Bundle is still a standard Jar, the only difference is that it could be used in plain java and OSGi without any effort.

Who's using it, how, etc?

Mayne people are using it including Eclipse-IDE and many big companies see for example https://www.osgi.org/membership/members/

I any other jdbc drivers support this?

The following JDBC drivers already offer support for OSGi Data Service Specification for JDBC™ Technology:

@gotson gotson linked a pull request Jul 29, 2022 that will close this issue
@laeubi laeubi linked a pull request Aug 19, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants