cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <>
Subject Re: avoid using contextClassLoader inside OSGi?
Date Tue, 24 Feb 2015 10:24:00 GMT
Are you dealing with some specific side-effects or would just like to 
see less of TCCL in CXF ?

I agree with what Christian said - in some cases CXF needs it as it is 
not an OSGI-only framework. But if minimizing the use of TCCL is 
possible then I guess it is a good idea.

On 24/02/15 09:44, Mike Wilson wrote:
> We're using CXF in a Karaf/OSGi setting and have noticed that CXF makes use
> of the contextClassLoader (TCCL), which is considered bad practice in OSGi.
> Some discussion has taken place on the osgi-dev mailing list, see [1], and
> Christian Schneider recommended to take this question to cxf-dev.
> Would it be possible to disable, or decrease the scope of, TCCL usage in CXF
> when run inside OSGi?
> Looking at the source code I see CXF is already aware that it is running
> inside OSGi through its Blueprint integration, so I'm thinking maybe this
> would be possible to control through the extension mechanism?
> Thanks
> Mike Wilson
> [1]

View raw message