Hi Mark,
thanks for you answer.
When you say deploy, I guess it is in the worbench's repository ?
Now I do not want to compile or whatever.
My application is running and while running, we want it to load new set of rules.
How is the KieContainer aware of the workbench address or stuff like that ?
I fully understand how all this work when redeploying a new version of my app and the drools package build by the drools-wb is seen as a maven dependency.
But in my use case, I do not see how it works.
I think I only miss this "Ensure the JAR is in the KieRepository, or available to maven if using kie-ci"
What is ensure ?
Sorry
Nicolas



2013/11/28 Mark Proctor [via Drools] <[hidden email]>
As per previous email:

1) Create your original project with rules, build and deploy the jar.
2) Load the JAR to create a KieContainer.
3) add or change rules. Change the maven version, build and deploy the jar.
4) Ensure the JAR is in the KieRepository, or available to maven if using kie-ci, and call KieContainer.updateToVersion( ReleaseId).

This will ensure your KieContainer is updated, and all existing stateful sessions will be incrementally updated too. Assuming no bugs :)

On a side note, on master, there is a change to ensure that the Maven syntax for scanNow (with using the KieScanner) is obeyed. see
https://issues.jboss.org/browse/DROOLS-356

Mark

On 28 Nov 2013, at 08:03, Nicolas Héron <[hidden email]> wrote:

> Hi All,
> In previous Drools version (5.3, 5.4, 55 and 5.6RC1), it was possible to dynamically  update the package content  from Guvnor.
> The use case was :
> 1) Some rules are created/updated/deleted on Guvnor
> 2) A new snapshot is built
> 3) The drools runtime is notified and reload a new knowledgeBase from this new snapshot. (For this we developed some code to do that). No need to redeploy a new application. No need for IT people to be involved.
> 4) It was possible to see the content of each snapshot and compare the content of different snapshot.
> Now in Version 6 :
> Step 1 : no change
> Step 2 : as all in Maven => We build a new maven build an increment the version number
> Step 3 : is is possible to do that ? How do I set in all that the new Drools-wb maven repo ?
> Step 4 : how can I do that from the UI ?
>
>
> Thanks in advance
> Nicolas Héron
> _______________________________________________
> rules-users mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users



If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/rules-users-Drools-6-and-dynamic-update-tp4026966p4026983.html
To start a new topic under Drools: User forum, email [hidden email]
To unsubscribe from Drools, click here.
NAML

Nicolas Héron


View this message in context: Re: [rules-users] Drools 6 and dynamic update
Sent from the Drools: User forum mailing list archive at Nabble.com.