[rules-users] OSGI, classloading, and imports in KnowledgeBuilder

Simon Thum simon.thum at gmx.de
Thu Aug 13 13:17:45 EDT 2009


Lasse.Wallentin at apcc.com wrote:
> Ok, I finally got it running. I had missed an import in the excel sheet so 
> I had a dependency on another bundle.
Cool!

> All this debugging has made me understand (and appreciate) the solution 
> sketched earlier by Faron Dutton more clearly. However it still seems a 
> bit involved when just a few decisiontables is needed - don't you think?
I think that under OSGi in gereral, the classloader becomes much more
important. Luckily drools is prepared for that, but it still pushes OSGi
a fair bit - with us witnessing the fallout.

Basically you need a classloader which can access you classes _and_ all
drools internals. Probably we could combine them somehow. Thought,
googled :)
http://www.osgi.org/blog/2008/08/classy-solutions-to-tricky-proxies.html

I'm not too content with my setup as well, maybe you can sketch yours as
it's running now? I'm gonna the try above solution, maybe we can
establish some best practise.

Cheers,

Simon



More information about the rules-users mailing list