C3P0, Proxool, ehcache, and infinispan services for OSGi

Description

hibernate-c3p0 and hibernate-proxool have internal packages defined as Private-Package in the MANIFEST. Rather than export them so that Core can get to the providers, or define them as bundle fragments of core, register the providers as services.

Environment

None

Activity

Show:
Steve Ebersole
March 24, 2013, 7:11 PM

Brett, specifically what I mean is that the intention was that a call would be made from classes within the hibernate-c3p0 and hibernate-proxool artifacts which registered org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.class and org.hibernate.service.jdbc.connections.internal.ProxoolConnectionProvider.class with the StrategySelectorService.

My understanding is that that should work. hibernate-c3p0 and hibernate-proxool obviously have access to their own class loaders.

Steve Ebersole
March 26, 2013, 8:03 PM

Brett, if you can get to this for Beta1 great. If not, we'll just push it to Beta2.

Brett Meyer
April 19, 2013, 5:18 PM

, with respect to OSGi, there will be a collision since both c3p0 and proxool export the org.hibernate.service.jdbc.connections.internal package. Any issues with refactoring that in master?

Brett Meyer
April 29, 2013, 4:04 PM

, following up with – good catch.

Brett Meyer
April 30, 2013, 3:30 PM

Reopening to add support for ehcache and infinispan

Fixed

Assignee

Brett Meyer

Reporter

Brett Meyer

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure