Thanks – I will try it this morning.
Herm
From: Esteban [via Drools] [mailto:[hidden email]]
Sent: Wednesday, February 22, 2012 1:55 AM
To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for PKG resources
I forgot to mention that you will have to change your code a little bit. Instead of passing a KnowledgeBuilderConfiguration to the agent, you will need to add a configuration option to the KnowledgeAgentConfiguration object your are using:
aconf.setProperty("drools.agent.useKBaseClassLoaderForCompiling", "true");
This way you are telling the agent to use the kbase's internal CL (We may set this as the default value I think).
If you want to try my fix, this is what you need to do:
- Prerequisites: java 1.5 or grater, maven 3.0.3 or grater and git
1.- $git clone git://click here.
NAML