We are in the OSGi world.
- JPA 2.1 supports injectable EntityListner.
- And EclipseLink supports JPA 2.1.
- But the OSGi Enterprise Spec 4.x only supports JPA 2.0.
So it seems that injectable EntityListener doesn't work in OSGi, even when EclipseLink supports them.
Is it currently possible to define EntityListener in blueprint.xml and use them for injection? This would allow to inject OSGi Services into an Entity Listener. (Currently we need an explicit lookup using FrameworkUtil to do the lookup.)
Has anybody done so successfully and can share some hints, especially in regard to the used bundle (versions)?