<div dir="ltr">&quot;if your rules change, then your version changes, and a new jar needs to be published&quot;
<br> Before you could rebuild a knowledgeBase, loading a binary package from Guvnor (by building a snapshot in guvnor ) and this at run time.
<br>So now you publish.
<br>How does the Kie-ci grap that jar ?
<br>How do you in a web at runtime reload a jar  ? Is this in kie-ci ? and do you grab it from the kie-wb  ? Where and how do you define in the client modue (my webapp containing kie-ci) the url to the maven repo exposed by the drools-(wb/kie-wb )?<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/28 Mark Proctor [via Drools] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=4026995&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span><br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">

        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><div>
Mark<br><div><br></div><div><br><div><div class="im"><div>On 28 Nov 2013, at 14:52, Nicolas Héron &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4026992&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt; wrote:</div>
<br></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" 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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div class="im"><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&#39;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> </span><br>I think I only miss this &quot;Ensure the JAR is in the KieRepository, or available to maven if using kie-ci&quot;<br>What is ensure ?<br>Sorry<br>
</div><div>Nicolas<br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/28 Mark Proctor [via Drools]<span> </span><span dir="ltr">&lt;&lt;a href=&quot;x-msg://281/user/SendEmail.jtp?type=node&amp;amp;node=4026988&amp;amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot; link=&quot;external&quot;&gt;[hidden email]&gt;</span><br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><div><div class="h5"><div>As per previous email:<span> </span><br><br>1) Create your original project with rules, build and deploy the jar.<span> </span><br>
2) Load the JAR to create a KieContainer.<span> </span><br>3) add or change rules. Change the maven version, build and deploy the jar.<span> </span><br>4) Ensure the JAR is in the KieRepository, or available to maven if using kie-ci, and call KieContainer.updateToVersion( ReleaseId).<span> </span><br>
<br>This will ensure your KieContainer is updated, and all existing stateful sessions will be incrementally updated too. Assuming no bugs :)<span> </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> </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> </span><br><br></div><div><div>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> </span><br>
</div></div><div><div><div><div><div><br>&gt; Hi All,<span> </span><br>&gt; In previous Drools version (5.3, 5.4, 55 and 5.6RC1), it was possible to dynamically  update the package content  from Guvnor.<span> </span><br>&gt; The use case was :<span> </span><br>
&gt; 1) Some rules are created/updated/deleted on Guvnor<span> </span><br>&gt; 2) A new snapshot is built<span> </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> </span><br>
&gt; 4) It was possible to see the content of each snapshot and compare the content of different snapshot.<span> </span><br>&gt; Now in Version 6 :<span> </span><br>&gt; Step 1 : no change<span> </span><br>&gt; Step 2 : as all in Maven =&gt; We build a new maven build an increment the version number<span> </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> </span><br>&gt; Step 4 : how can I do that from the UI ?<span> </span><br>&gt;<span> </span><br>&gt;<span> </span><br>
&gt; Thanks in advance<span> </span><br>&gt; Nicolas Héron</div></div></div>&gt; _______________________________________________<span> </span><br>&gt; rules-users mailing list<span> </span><br>&gt;<span> </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> </span><br>
&gt;<span> </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></div><br>_______________________________________________<span> </span><br>
rules-users mailing list<span> </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> </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" rel="nofollow" link="external" target="_blank">http://drools.46999.n3.nabble.com/rules-users-Drools-6-and-dynamic-update-tp4026966p4026983.html</a></div>
</div></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> </span>&lt;a href=&quot;x-msg://281/user/SendEmail.jtp?type=node&amp;amp;node=4026988&amp;amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot; link=&quot;external&quot;&gt;[hidden email]<span> </span><div class="im">
<br>To unsubscribe from Drools,<span> </span><a rel="nofollow" link="external" target="_top">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" link="external" style="font-style:normal;font-variant:normal;font-weight:normal;font-size:9px;line-height:normal;font-family:serif" target="_blank">NAML</a></div>
</div></blockquote></div><br></div><div class="im"><div style="margin-top:1em;color:rgb(102,102,102);font-size:11px">Nicolas Héron</div><br><hr width="300" align="left">View this message in context:<span> </span><a href="http://drools.46999.n3.nabble.com/rules-users-Drools-6-and-dynamic-update-tp4026966p4026988.html" rel="nofollow" link="external" target="_blank">Re: [rules-users] Drools 6 and dynamic update</a><br>
Sent from the<span> </span><a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html" rel="nofollow" link="external" target="_blank">Drools: User forum mailing list archive</a><span> </span>at<span> </span><a href="http://nabble.com/" rel="nofollow" link="external" target="_blank">Nabble.com</a>.<br>
</div><div class="im">_______________________________________________<br>rules-users mailing list<br><a href="http://user/SendEmail.jtp?type=node&amp;node=4026992&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a><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></div></div></blockquote></div><br></div></div><div class="im">
<br>_______________________________________________
<br>rules-users mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=4026992&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<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>
        <hr color="#cccccc" noshade size="1">
        </div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://drools.46999.n3.nabble.com/rules-users-Drools-6-and-dynamic-update-tp4026966p4026992.html" target="_blank" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/rules-users-Drools-6-and-dynamic-update-tp4026966p4026992.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under Drools: User forum, email <a href="/user/SendEmail.jtp?type=node&node=4026995&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
                To unsubscribe from Drools, <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" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br></div></div>


        
        
        <div class="signature" style="margin-top:1em;color:#666666;font-size:11px;">
                                Nicolas Héron
                        </div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-Drools-6-and-dynamic-update-tp4026966p4026995.html">Re: [rules-users] Drools 6 and dynamic update</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>