Hi all,

Im trying to get the sample code in the Drools 5.0.1 User Manual to work locally for a Knowledge Agent, but Im missing some info (from my perspective) to get it to run.

Question #1:

From the User Manual (3.2.6):

KnowledgeAgent kagent =

          KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );

kagent.applyChangeSet( ResourceFactory.newUrlResource( url ) );

KnowledgeBase kbase = kagent.getKnowledgeBase();

In the third line, what is url and how is it defined in the java code?  I dont know what to set up here to make it work.  Ive found this same code on multiple sites, but no answer to the question.

Question #2:

How do I set up a Change Set XML file?  I see the XML, but I dont know where to put the file and how to link it into the code.

Question #3:

Does KnowledgeAgent replace RuleAgent for invoking Guvnor-deployed packages in 5.0.1?  If so, how do you specify the url of the deployed package from Guvnor?

Sorry if my questions are ignorant.  Ive been trying to find these answers for several days and hit the point where I needed to get some help.

Thanks,

John