[rules-users] KieScanner not working
Pykhtin, Alex
apykhtin at ebay.com
Tue May 6 17:08:38 EDT 2014
I'm trying to use KieScanner in 6.0.1.Final build and just can't make it work. Maybe it's actually an issue with my using of Maven.
Here's my code:
ReleaseId releaseId = ks.newReleaseId( "com.study", "project_jar", "0.0.1-SNAPSHOT" );
KieContainer kContainer = ks.newKieContainer( releaseId );
KieSession kSession = kContainer.newKieSession("ksession-rules_jar");
KieScanner kScanner = ks.newKieScanner( kContainer );
Where "com.study" is my fictional domain and "project_jar" is the jar of my project. It has dependency on "drools_jar" which is a kjar of version "0.0.1-SNAPSHOT" (same version for both jars, by the way).
Later, I'm trying to test drools_jar updating by doing two things:
1. Rebuilding and deploying drools_jar to the local repository;
2. Calling kScanner.scanNow()
And KieScanner is not picking up the changes.
If I'm deploying drools_jar with the same "0.0.1-SNAPSHOT" version, nothing happens, until the next time I restart my project.
If I'm deploying drools_jar with the new "0.0.2-SNAPSHOT" version, then it's not a correct dependency and KieScanner is not picking it up (as I expected).
If I'm rebuilding project_jar with a new dependency on "0.0.2-SNAPSHOT" of drools_jar, KieScanner is not picking it up either, but restart helps (as I expected).
What is the proper practice of using KieScanner?
Thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140506/e0d25197/attachment.html
More information about the rules-users
mailing list