OSGI has two classes/interfaces for dealing with Service Tracking -
ServiceTracker and ServiceTrackerCustomizer, which could be used to
create a OSGI-auto-discovery (and auto-cleanup)-Helper for hibernate:
A simple skeleton could look like:
package org.bibbernet.osgi;
import org.osgi.framework
Not sure this will actually help with OSGi in terms of auto-discovery
at all after thinking about it some more. The problem is that in order
for auto-discovery to happen, Hibernate would need to have visibility
into the jar defining the service anyway in order to auto-discovery it.
On the brig