3q,verymuch<br><br>At 2013-12-16 03:52:08,"Mark Proctor [via Drools]" <<a href="/user/SendEmail.jtp?type=node&node=4027328&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> 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 (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 <<a href="/user/SendEmail.jtp?type=node&node=4027311&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:
<br><div class="shrinkable-quote"><div class='shrinkable-quote'><br>> drools 6 has a great advance from drools5.
<br>> I am a begginer of both drools 5 and drools6.
<br>> My question is that I don't know how to impliment dynamic drl which means
<br>> my drl(rule) file may change during the running of my app since in drools 6
<br>> target a drl file like this:
<br>> <?xml version="1.0" encoding="UTF-8"?>
<br>> <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>> 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>">
<br>>
<br>> <kbase name="HelloWorldKB" packages="org.drools.examples.helloworld">
<br>> <ksession name="HelloWorldKS"/>
<br>> </kbase>
<br>> ....................
<br>>
<br>> this file is located in src/main/resources/META-INF/kmodule.xml.
<br>> And then the drl file will be packaged in the jar file.
<br>>
<br>> when i want to change my drl file, how can i do. note:i don't want to
<br>> rebuild my java source to jar.
<br>>
<br>> for any help? thank you all, from china.
<br>>
<br>>
<br>>
<br>> --
<br>> 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>> Sent from the Drools: User forum mailing list archive at Nabble.com.
<br>>
<br>> _______________________________________________
<br>> rules-users mailing list
<br>> <a href="/user/SendEmail.jtp?type=node&node=4027311&i=1" 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></div></div><br>_______________________________________________
<br>rules-users mailing list
<br><a href="/user/SendEmail.jtp?type=node&node=4027311&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&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&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/>