The classpath feature is nice, thanks.

I guess I'm clinging to the notion that my rule set must evolve over time.
As such, the source code (.clp files) will most likely be version
controlled.  Being both subject to change and version controlled, I was
thinking that it would be nice to be able to dynamically redirect the rules
base location at runtime.  This seems unavoidable if I'm going to support
the notion of regression testing new logic as the rule set evolves.

This whole notion came about as I attempt to implement/extend the 'Automated
Testing Framework' defined in appendix C of the JIA book.

I suppose that I could re-define my CLASSPATH at runtime, but I was hoping
to accomplish this with a dynamic property somehow.  I've implemented Jess
as an RMI service (per Ch 21 of JIA), and had envisioned a remote method,
say 'public void setRulebase(String path)' that would force a dynamic
re-load of the rule set in all Rete instances prior to the next test run.
Now I can test/regress multiple versions of the rules base from my Eclipse
plugin without having to restart the remote RMI server.

As usual, any/all suggestions are greatly appreciated.

-Mitch

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of [EMAIL PROTECTED]
Sent: Monday, September 13, 2004 6:24 PM
To: [EMAIL PROTECTED]
Subject: Re: JESS: RE: Help with (defadvice)


I think Mitch Christensen wrote:
>
>
> FWIW, I'm trying to load rules from a location defined by a java system
> property.  For instance, I would like to do the following:
>
> C:\data > java jess.Main -Dapp.rules.dir=C:\app\server\rules
>
> Then I would like (batch) to read files relative to the app.rules.dir
> property value.  This allows me to separate my rules from my data files
> (which reside under C:\data).
>
> I was intending on using 'before advice' in (batch) to prepend the
> parameter value with the contents of the 'app.rules.dir' system
> property.



Note that batch tries to find the named file in several places: the
current directory first, and then failing that, along the
CLASSPATH. So if your program could be started such that your
app.rules.dir was on the CLASSPATH, then Jess would automatically find
your rules files, without your doing anything.


---------------------------------------------------------
Ernest Friedman-Hill
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to