Hi, thanks for the tip. I just think that Karaf provides DOSGi implementation [not in my old version]. I guess this implementation has the right implementation of serialization.
Regards Hervé On Tue, Apr 24, 2012 at 10:45 PM, Christian Schneider < [email protected]> wrote: > As you can not change the jdk code I think such a workaround is acceptable. > Btw. It is a good practice to save the old ThreadContextClassLoader and > restore it after the call. > > Christian > > Am 24.04.2012 22:08, schrieb Hervé BARRAULT: > > Hi, i did a really ugly quick fix using ThreadContextClassLoader and it >> is working (using resolveClass for ObjectInputStream). >> >> I say ugly because it is still based on class name [not OSGI compliant] >> but it validates the ThreadContextClassLoader "Workaround". >> >> Thanks >> Regards >> hervé >> > > -- > > Christian Schneider > http://www.liquid-reality.de > > Open Source Architect > Talend Application Integration Division http://www.talend.com > >
