Sorry, I forgot to mention, the Mortgages-example I have contains the following:-

    private static KnowledgeBase readKnowledgeBase() throws Exception {
        KnowledgeAgent kagent = KnowledgeAgentFactory
                .newKnowledgeAgent( "MortgageAgent" );
        kagent.applyChangeSet( ResourceFactory
                .newClassPathResource( "changeset.xml" ) );
        KnowledgeBase kbase = kagent.getKnowledgeBase();
        kagent.dispose();
        return kbase;
    }

You can see it loads the changeset.xml file (no sight of a properties file?!?!).

This file you will note is in the src folder which is on the classpath defined in the Eclipse .classpath file (assuming you run mvn eclipse:eclipse to create these).

With kind regards,

Mike

On 3 February 2011 09:48, drools10 <tsarkar@professionalaccess.com> wrote:

Hi Mike,
         I went through the mortgage example. I saw the guvnor generated
url accessed through a properties file there. I had tried a similar approach
before. But the issue of username/password had cropped up, even when ran as
a simple java application. By creating my own changeset xml only I was able
to resolve the issue.
       Could you please elaborate how I can add the ChangeSet to my
classpath, as you suggested earlier?
Or could you tell me which jar files the 'con' entry in .classpath file
refers to : <classpathentry kind="con" path="DROOLS/Drools"/> ?
       Thanks.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/guvnor-integration-gives-401-error-tp2404740p2412058.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users