Hi Christian,
+1 (it's actually what I wanted to propose as well).
Regards
JB
On 08/04/2015 09:21 AM, Christian Schneider wrote:
Actually after talking to Peter I just found a much simpler solution
when I tried to explain the problem.
I am using the Aries blueprint interceptor interface:
https://github.com/apache/aries/blob/trunk/blueprint/blueprint-parser/src/main/java/org/apache/aries/blueprint/Interceptor.java
It allows to return an object in precall. So I can simply return the
coordination there and I do not need to store it in a thread local.
Christian
On 03.08.2015 23:23, BJ Hargrave wrote:
Yes, you need to do something to hold a strong reference to the
coordination. But you also need to make sure you always clean up so
there is no case where a strong reference is never cleaned up. I don't
know anything about your use case.
--
BJ Hargrave
Senior Technical Staff Member, IBM // office: +1 386 848 1781
OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788
hargr...@us.ibm.com
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev
--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev