There is code in Drools where package contents are heavily modified, viz.<br>in the Resource Change Monitor. Therefore, your plan to remove the rules<br>(and the package) from DRL #1 to clean the slate for DRL #2 which is<br>
written using the same package name, should not cause any problems.<br><br>-W<br> <br><br><br><div class="gmail_quote">On 19 October 2011 20:15, rajee.sakthi <span dir="ltr">&lt;<a href="mailto:rajee.sakthivadivelu@rph.com">rajee.sakthivadivelu@rph.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks Laune for the response.<br>
I am sorry for not providing enough information. I didnt know if I am<br>
explaining it enough in DROOLs context. I might still miss some information,<br>
I am sorry for that and thanks for your time trying to help me.<br>
<br>
This is my scenario.<br>
My knowledgebase has bunch of rules from different name spaces and it works<br>
fine.<br>
<br>
but in one specific use case (which I am implementing now), I have to<br>
dynamically add/remove rules to/from a single namespace.<br>
for example, at onetime I get a DRL with a set of rules that compile to the<br>
namespace com.mypkg.<br>
and in another time I get another DRL with a different set of rules which<br>
also compile to the namespace com.mypkg.<br>
<br>
and there is no limit for the number of such DRLs with different sets of<br>
rules that compile to the same namespace com.mypkg.<br>
<br>
also at some point I have to remove such a DRL, which means I will be<br>
removing the rules defined in the DRL from the knowledge package.<br>
<br>
these addition/deletion scenarios never end.<br>
<br>
So my questions are as below:<br>
<br>
1. is there any side effect to using the same package name in mutliple DRLs,<br>
which ultimately results in<br>
dynamically adding/removing of part of rules from a knowledge package ?<br>
2. Is there any reason why you would think using unique package name per DRL<br>
is beneficial compared to the above  ?<br>
<br>
I agree with you, I dont see a reason why I have to remove the knowledge<br>
package after all the rules have gone. May be I dont have to do that. but<br>
does it matter even if I remove it ?<br>
<br>
yes the remaining knowledge base is still good for other sessions.<br>
Thanks again Laune.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Rules-from-Multiple-DRLs-use-the-same-namespace-tp3432304p3435198.html" target="_blank">http://drools.46999.n3.nabble.com/Rules-from-Multiple-DRLs-use-the-same-namespace-tp3432304p3435198.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>