I think FileInstall just exposes a bug in your setup. Code that can't withstand 
a refresh is buggy. It is better to find those bugs early and fix them then 
when they start happening in production.

Kind regards,

        Peter Kriens

On 18 dec. 2012, at 22:08, Raul Kripalani wrote:

> Hi all,
> 
> Is it possible to avoid framework refreshes when File Install adds a
> bundle? In some cases, refreshing the framework could be somewhat
> destructive.
> 
> Right now I'm facing a situation where values of MDC logging disappear in
> log4j appenders (I know it sounds random, but it's true). My setup: Karaf
> 2.2.9 with Equinox and Camel 2.10.3.
> 
> I've been able to trace this situation to when Commons FileUpload is
> dropped inside deploy/, which ends up refreshing Spring Web (has an
> optional dependency to FileUpload).
> 
> The refresh percolates up to the top due to transitive imports, probably
> reaching the Pax Logging bundles. As a result, MDC stops working
> altogether, likely related to the new classloader spaces and static
> ThreadLocal fields.
> 
> Thanks for your help!
> 
> Regards,
> 
> *Raúl Kripalani*
> Apache Camel Committer
> Enterprise Architect, Program Manager, Open Source Integration specialist
> http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani
> http://blog.raulkr.net | twitter: @raulvk <http://twitter.com/raulvk>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to