Code Monkey home page Code Monkey logo

org.ops4j.pax.jdbc's People

Contributors

anierbeck avatar borcsokj avatar chrisdolan avatar coheigea avatar cschneider avatar dependabot[bot] avatar fpapon avatar gnodet avatar graben avatar grgrzybek avatar hhoffstaette avatar hwellmann avatar ieugen avatar j0xaf avatar jbonofre avatar jiriondrusek avatar kameshsampath avatar laeubi avatar maurice-betzel avatar mdurand76 avatar paulsp avatar petersuna avatar rocketraman avatar smasherr avatar svogt avatar tcharl avatar tonit avatar vorburger avatar yogeshrao avatar zhfeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

org.ops4j.pax.jdbc's Issues

PostgreSQL driver adapter [PAXJDBC-2]

Harald Wellmann created PAXJDBC-2

Create a PostgreSQL driver adapter which imports org.postgresql.* from an osgified PostgreSQL JDBC driver and works with its native DataSource implementation classes to register a DataSourceFactory with full support for vanilla, pooled and XA data sources.


Fixed in: 0.1.0
Votes: 0, Watches: 0

pax-jdbc-config uses implementation specific properties to create DataSource service filter [PAXJDBC-39]

Nick Smith created PAXJDBC-39

I have been playing with 0.4.0-SNAPSHOT and have a query / proposal :

Would it be an idea for pax-jdbc-config could use DataSourceFactory#JDBC_DATASOURCE_NAME to create filter for the publishing the datasource? Currently OSGI_JDBC_DRIVER_NAME and/or OSGI_JDBC_DRIVER_CLASS are used to create the LDAP filter for the published service but these values are implementation specific and it would be cleaner to be able to reference the datasource by such an arbitrary value.

Thanks for the great work!


Affects: 0.4.0
Fixed in: 0.4.0
Votes: 0, Watches: 2

Driver discovery and generic DataSourceFactory registration [PAXJDBC-1]

Harald Wellmann created PAXJDBC-1

  • Using the extender pattern, discover any bundle containing a META-INF/services/java.sql.Driver resource.
  • Load the driver class(es) defined in that resource via the bundle classloader and instantiate a driver.
  • Register a DataSourceFactory which delegates DataSource.getConnection() to the driver instance.

With this approach, any JDBC 4 driver packaged as an OSGi bundle can provide a DataSourceFactory with limited functionality, without having to implement a specific adapter for the OSGi JDBC service.

This also works for drivers distributed as plain old JARs when they are wrapped using the Pax URL wrap: protocol handler.


Fixed in: 0.1.0
Votes: 0, Watches: 0

Automatically create data sources from configuration files [PAXJDBC-29]

Christian Schneider created PAXJDBC-29

What I have in mind is to create a module that watches for configs in config admin that match a certain filter like org.ops4j.datasource..cfg or even datasource..cfg.

Each such config contains properties defined in DataSourceFactory like url, user, password, ...
The DataSourceFactory is chosen by a driver property.

So such a config (datasource.test.cfg) could look like this for derby:
driver=org.apache.derby.jdbc.EmbeddedDriver
databaseName=memory:TEST;create=true

So the new module would do the following:

pick up the config
find the matching DataSourceFactory (e.g. provided by pax jdbc)
create a new DataSource with the rest of the properties
publish the DataSource as an OSGi service and with a jndi name suitable for aries jndi

So the user would install:

derby
pax jdbc derby
the new module
config in config admin

The result would be a data source that is ready to use for aries jdbc or any other use case.

This solution would work much better for production deployments than the current blueprint solution.


Affects: 0.3.0
Fixed in: 0.4.0
Votes: 0, Watches: 1

DBCP2 set JMX Pool name [PAXJDBC-50]

Michael Taeschner created PAXJDBC-50

Per default GenericObjectPool sets the JMX object name to "pool" It would be rather helpful for tracking multiple managed Datasource pools if the pool name matched the datasource config in some way.

Please initialize the PoolableConnectionFactory with a ObjectName reflecting the datasource config instead of "null"

source: org.ops4j.pax.jdbc.pool.dbcp2.impl.ds.CloseablePoolingDataSource

PoolableConnectionFactory pcf = new PoolableConnectionFactory(cf, null);

Affects: 0.4.0
Fixed in: 0.6.0
Attachments:

Votes: 0, Watches: 2

H2 driver adapter [PAXJDBC-8]

Harald Wellmann created PAXJDBC-8

Create an H2 driver adapter which imports org.h2.* from an osgified H2 JDBC driver and works with its native DataSource implementation classes to register a DataSourceFactory with full support for vanilla, pooled and XA data sources.


Fixed in: 0.2.0
Votes: 0, Watches: 0

Use osgified PostgreSQL driver [PAXJDBC-26]

Harald Wellmann created PAXJDBC-26

Since the official PostgreSQL driver is not an OSGi bundle, we currently use the Pax URL wrap: protocol to wrap it on the fly.

There is a third-party bundled artifact on Maven Central which should be used instead:

<dependency>
<groupId>org.ancoron.postgresql</groupId>
<artifactId>org.postgresql.osgi</artifactId>
<version>9.1.901.jdbc4.1-rc9</version>
</dependency>


Affects: 0.2.0
Fixed in: 0.3.0
Votes: 0, Watches: 1

URL support for MySqlDataSourceFactory [PAXJDBC-15]

Tuomas Kiviaho created PAXJDBC-15

Currently MySqlDataSourceFactory will not accept URL as an option but insist on getting configuration in separate entries and parameters do not have any means of getting though.

Support for passing though the URL (http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html) unchanged would resolve this issue nice and clean without having to delve into the depths of URL syntax parsing (which wouldn't seem to be playing nicely with java.net.URI if I'im correct). This would create a slight ambiguity to parameterization but that is the case with plain-old driver configuration as well so I'd be trusting the user to know how to confuig the driver properly (and the driver to give proper feedback as well). This is after all just an adapter.


Affects: 0.3.0
Fixed in: 0.3.0
Votes: 0, Watches: 1

MySQL driver adapter [PAXJDBC-6]

Harald Wellmann created PAXJDBC-6

Create a MySQL driver adapter which imports com.mysql.jdbc.* from an osgified MySQL JDBC driver and works with its native DataSource implementation classes to register a DataSourceFactory with full support for vanilla, pooled and XA data sources.


Fixed in: 0.2.0
Votes: 0, Watches: 0

Embedded Derby driver adapter [PAXJDBC-3]

Harald Wellmann created PAXJDBC-3

Create a Derby driver adapter which imports the required packages from the Apache Derby JDBC driver (distributed as OSGI bundle) and works with its native embedded DataSource implementation classes to register a DataSourceFactory with full support for vanilla, pooled and XA data sources.


Fixed in: 0.1.0
Votes: 0, Watches: 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.