it’s not quite that automatic.
You can only do updates vis the dynamic modules system. you have to build jars and update
to the latest jar.
Go through the KIE examples docs, and the unit tests I showed you.
Mark
On 11 Dec 2013, at 22:31, wtang <wtang(a)kana.com> wrote:
Oh, I don't doubt for a moment that it is working. I know it is
working.
What I am trying to figure out is what step am I missing.
I installed drool 6.0 Eclipse plugin and simply added a loop in the out of
the box hello word example.
while the loop is running, I went into the eclipse editor, modify and saved
the hello word example in Sample.drl to print out instead of "Hello World"
"Hello World!!!!".
The loop just keeps on printing out "Hello World" and not my changes which
is "Hello World!!!!".
Here is the hello world program, I just modified it to add the loop:
public static final void main(String[] args) {
try {
// load up the knowledge base
KieServices ks = KieServices.Factory.get();
KieContainer kContainer = ks.getKieClasspathContainer();
KieSession kSession = kContainer.newKieSession("ksession-rules");
// go !
while(true) {
Thread.sleep(100);
Message message = new Message();
message.setMessage("Hello World");
message.setStatus(Message.HELLO);
kSession.insert(message);
kSession.fireAllRules();
}
} catch (Throwable t) {
t.printStackTrace();
}
}
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-6-support-for-changeset-tp402713...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users