Ok, so I am doing the following.
In my init, i create a container and a scanner
kieContainer = kieServices.newKieContainer(releaseId);
kieScanner = kieServices.newKieScanner(kieContainer);
Then later ,when my timer fires, call the scanner - which I know has updated
the module,
kieContainer.newKieSession("DroolsSession")
does NOT pick up the changes.
I also tried kieContainer.updateToVersion(releaseId);
kieContainer.newKieSession("DroolsSession")
does NOT pick up the changes.
Doing
remove setting up the container and the scanner in init and do the
following when my timer fires
kieContainer = kieServices.newKieContainer(releaseId);
kieScanner = kieServices.newKieScanner(kieContainer);
kieContainer.newKieSession("DroolsSession")
DOES PICKUP the changes.
Is this right, it seems like I shouldn't have to recreate the container?
--
View this message in context:
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028906.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users