Christian, I'm using OpenJPA.
I implement @PostPersist method in entity event listener which I registered
by means of @EntityListeners annotation.
ServiceTracker... My API bundle will depend on OSGi framework... But I'll
try it. There will b no problems with dynamism?

My quick test solution was to inject needed services through constructor to
blueprint bean. And in constructor write needed services to static bean
fields.

As I remember blueprint it will be proxy objects and blueprint will handle
service implementation change.
Am I mistaken?

I'm looking for the best :) way.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Best-way-to-access-OSGi-services-from-classes-which-object-creation-I-cannot-handle-tp4040986p4040994.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to