I am using Drools 5.6.0.Final of knowledge-api drools code. It's using this CompositeClassLoader http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.drools/knowledge-api/5.6.0.Final/org/drools/util/CompositeClassLoader.java#CompositeClassLoader
I believe this then gets invoked by http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.drools/knowledge-api/5.6.0.Final/org/drools/util/ClassLoaderUtil.java?av=f
The CompositeClassLoader.java has a bug in it for multi-threading environment on the CachingLoader (on the HashMap put method).
I am trying to avoid patching the drools code itself and trying to wrap it with our own custom loader.
Can anyone please show me how?
I've read through these http://www.javablogging.com/java-classloader-2-write-your-own-classloader/ however I am still unsure how the code I am about to create will be invoked when the application starts up and override the drools class loader.
Any help is really appreciated. Thanks & regards voki