<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">If your rules change, then your version changes, and a new jar needs to be published.<div><br></div><div>Separate your rules, from your application and allow them to be dynamically updated.</div><div><br></div><div>Mark<br><div><br></div><div><br><div><div>On 28 Nov 2013, at 14:52, Nicolas Héron &lt;<a href="mailto:nicolas.heron.java@gmail.com">nicolas.heron.java@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div>Hi Mark,<br></div><div>thanks for you answer.<br></div><div>When you say deploy, I guess it is in the worbench's repository ?<br></div><div>Now I do not want to compile or whatever.<br></div><div>My application is running and while running, we want it to load new set of rules.<br></div><div>How is the KieContainer aware of the workbench address or stuff like that ?<br></div><div>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.<br></div><div>But in my use case, I do not see how it works.<span class="Apple-converted-space">&nbsp;</span><br>I think I only miss this "Ensure the JAR is in the KieRepository, or available to maven if using kie-ci"<br>What is ensure ?<br>Sorry<br></div><div>Nicolas<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/28 Mark Proctor [via Drools]<span class="Apple-converted-space">&nbsp;</span><span dir="ltr">&lt;<a href="x-msg://281/user/SendEmail.jtp?type=node&amp;node=4026988&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding: 0px 1em;"><div class="im">As per previous email:<span class="Apple-converted-space">&nbsp;</span><br><br>1) Create your original project with rules, build and deploy the jar.<span class="Apple-converted-space">&nbsp;</span><br>2) Load the JAR to create a KieContainer.<span class="Apple-converted-space">&nbsp;</span><br>3) add or change rules. Change the maven version, build and deploy the jar.<span class="Apple-converted-space">&nbsp;</span><br>4) Ensure the JAR is in the KieRepository, or available to maven if using kie-ci, and call KieContainer.updateToVersion( ReleaseId).<span class="Apple-converted-space">&nbsp;</span><br><br>This will ensure your KieContainer is updated, and all existing stateful sessions will be incrementally updated too. Assuming no bugs :)<span class="Apple-converted-space">&nbsp;</span><br><br>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<span class="Apple-converted-space">&nbsp;</span><br><a href="https://issues.jboss.org/browse/DROOLS-356" rel="nofollow" link="external" target="_blank">https://issues.jboss.org/browse/DROOLS-356</a><br><br>Mark<span class="Apple-converted-space">&nbsp;</span><br><br></div><div><div class="h5">On 28 Nov 2013, at 08:03, Nicolas Héron &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4026983&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt; wrote:<span class="Apple-converted-space">&nbsp;</span><br></div></div><div><div><div class="h5"><div class="shrinkable-quote"><br>&gt; Hi All,<span class="Apple-converted-space">&nbsp;</span><br>&gt; In previous Drools version (5.3, 5.4, 55 and 5.6RC1), it was possible to dynamically &nbsp;update the package content &nbsp;from Guvnor.<span class="Apple-converted-space">&nbsp;</span><br>&gt; The use case was :<span class="Apple-converted-space">&nbsp;</span><br>&gt; 1) Some rules are created/updated/deleted on Guvnor<span class="Apple-converted-space">&nbsp;</span><br>&gt; 2) A new snapshot is built<span class="Apple-converted-space">&nbsp;</span><br>&gt; 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.<span class="Apple-converted-space">&nbsp;</span><br>&gt; 4) It was possible to see the content of each snapshot and compare the content of different snapshot.<span class="Apple-converted-space">&nbsp;</span><br>&gt; Now in Version 6 :<span class="Apple-converted-space">&nbsp;</span><br>&gt; Step 1 : no change<span class="Apple-converted-space">&nbsp;</span><br>&gt; Step 2 : as all in Maven =&gt; We build a new maven build an increment the version number<span class="Apple-converted-space">&nbsp;</span><br>&gt; Step 3 : is is possible to do that ? How do I set in all that the new Drools-wb maven repo ?<span class="Apple-converted-space">&nbsp;</span><br>&gt; Step 4 : how can I do that from the UI ?<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><br>&gt; Thanks in advance<span class="Apple-converted-space">&nbsp;</span><br>&gt; Nicolas Héron</div></div></div>&gt; _______________________________________________<span class="Apple-converted-space">&nbsp;</span><br>&gt; rules-users mailing list<span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><a href="http://user/SendEmail.jtp?type=node&amp;node=4026983&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><span class="Apple-converted-space">&nbsp;</span><br>&gt;<span class="Apple-converted-space">&nbsp;</span><a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></div><br><br>_______________________________________________<span class="Apple-converted-space">&nbsp;</span><br>rules-users mailing list<span class="Apple-converted-space">&nbsp;</span><br><a href="http://user/SendEmail.jtp?type=node&amp;node=4026983&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a><span class="Apple-converted-space">&nbsp;</span><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br><br><hr noshade="" size="1"><div style="color: rgb(68, 68, 68); font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: tahoma, geneva, helvetica, arial, sans-serif;"><div style="font-weight: bold;">If you reply to this email, your message will be added to the discussion below:</div><a href="http://drools.46999.n3.nabble.com/rules-users-Drools-6-and-dynamic-update-tp4026966p4026983.html" target="_blank" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/rules-users-Drools-6-and-dynamic-update-tp4026966p4026983.html</a></div><div style="color: rgb(102, 102, 102); font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; font-family: tahoma, geneva, helvetica, arial, sans-serif; margin-top: 0.4em; line-height: 1.5em;">To start a new topic under Drools: User forum, email<span class="Apple-converted-space">&nbsp;</span><a href="x-msg://281/user/SendEmail.jtp?type=node&amp;node=4026988&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]</a><span class="Apple-converted-space">&nbsp;</span><br>To unsubscribe from Drools,<span class="Apple-converted-space">&nbsp;</span><a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br><a href="http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" target="_blank" link="external" style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-family: serif;">NAML</a></div></blockquote></div><br></div><div class="signature" style="margin-top: 1em; color: rgb(102, 102, 102); font-size: 11px;">Nicolas Héron</div><br><hr align="left" width="300">View this message in context:<span class="Apple-converted-space">&nbsp;</span><a href="http://drools.46999.n3.nabble.com/rules-users-Drools-6-and-dynamic-update-tp4026966p4026988.html">Re: [rules-users] Drools 6 and dynamic update</a><br>Sent from the<span class="Apple-converted-space">&nbsp;</span><a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a><span class="Apple-converted-space">&nbsp;</span>at<span class="Apple-converted-space">&nbsp;</span><a href="http://nabble.com/">Nabble.com</a>.<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></div></blockquote></div><br></div></div></body></html>