3q,verymuch<br><br>At 2013-12-16 03:52:08,"Mark&nbsp;Proctor&nbsp;[via&nbsp;Drools]"&nbsp;&lt;<a href="/user/SendEmail.jtp?type=node&node=4027328&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:<br> <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">

        Each update must be rebuilt and repackaged in a JAR - the JAR is our unit of deployment, and unit of update.
<br><br>You can either rebuild that using the maven plugin, or you can rebuild it at runtime using the programmatic api. Either way make sure you remember to increase the version.
<br><a href="http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html/KIEChapter.html#KIEExamplesSection" target="_top" rel="nofollow" link="external">http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html/KIEChapter.html#KIEExamplesSection</a><br>4.2.5.10. Programaticaly build a KieModule using Meta Models (how to build the jar)
<br>4.2.5.6. Default KieSession from File &nbsp;(how to load the jar at runtime)
<br><br>One you have the jar, add it to the KieRepository. And then you can call 
<br>KieContainer.updateToVersion( String ReleaseID )
<br><br>If you are using kie-ci the jar can be placed in your local m2_repo, where it will be resolved automatically.
<br><br>Note you cannot put jars on the class path, that you then want to dynamically update at runtime.
<br><br>Mark
<br>On 15 Dec 2013, at 08:55, merry0900 &lt;<a href="/user/SendEmail.jtp?type=node&amp;node=4027311&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:
<br><div class="shrinkable-quote"><div class='shrinkable-quote'><br>&gt; drools 6 has a great advance from drools5.
<br>&gt; I am a begginer of both drools 5 and drools6.
<br>&gt; My question is that I don't know how to impliment dynamic drl which means
<br>&gt; my drl(rule) file may change during the running of my app since in drools 6
<br>&gt; target a drl file like this:
<br>&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
<br>&gt; &lt;kmodule xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_top" rel="nofollow" link="external">http://www.w3.org/2001/XMLSchema-instance</a>"
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; xmlns="<a href="http://jboss.org/kie/6.0.0/kmodule" target="_top" rel="nofollow" link="external">http://jboss.org/kie/6.0.0/kmodule</a>"&gt;
<br>&gt; 
<br>&gt; &nbsp; &nbsp;&lt;kbase name="HelloWorldKB" packages="org.drools.examples.helloworld"&gt;
<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;ksession name="HelloWorldKS"/&gt;
<br>&gt; &nbsp; &nbsp;&lt;/kbase&gt;
<br>&gt; ....................
<br>&gt; 
<br>&gt; this file is located in src/main/resources/META-INF/kmodule.xml.
<br>&gt; And then the drl file will be packaged in the jar file. 
<br>&gt; 
<br>&gt; when i want to change my drl file, how can i do. &nbsp;note:i don't want to
<br>&gt; rebuild my java source to jar.
<br>&gt; 
<br>&gt; for any help? thank you all, &nbsp;from china.
<br>&gt; 
<br>&gt; 
<br>&gt; 
<br>&gt; --
<br>&gt; View this message in context: <a href="http://drools.46999.n3.nabble.com/how-to-use-dynamic-drl-file-in-drools-6-tp4027306.html" target="_top" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/how-to-use-dynamic-drl-file-in-drools-6-tp4027306.html</a><br>&gt; Sent from the Drools: User forum mailing list archive at Nabble.com.
<br>&gt; 
<br>&gt; _______________________________________________
<br>&gt; rules-users mailing list
<br>&gt; <a href="/user/SendEmail.jtp?type=node&amp;node=4027311&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a></div></div><br>_______________________________________________
<br>rules-users mailing list
<br><a href="/user/SendEmail.jtp?type=node&amp;node=4027311&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444; font: 12px 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/how-to-use-dynamic-drl-file-in-drools-6-tp4027306p4027311.html" target="_top" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/how-to-use-dynamic-drl-file-in-drools-6-tp4027306p4027311.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from how to use dynamic drl file in drools 6, <a href="" target="_top" 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="_top" link="external">NAML</a>
        </div></blockquote><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/how-to-use-dynamic-drl-file-in-drools-6-tp4027306p4027328.html">Re:Re: [rules-users] how to use dynamic drl file in drools 6</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/>