<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR>
<STYLE>@font-face {
        font-family: Times Roman;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=348043015-22032007><FONT face=Arial 
color=#0000ff size=2>If you have many, many&nbsp;rules I think an optimisation 
would be&nbsp;to save a serialised rulebase and use this instead 
of&nbsp;creating one from your DRL (which would include parsing and 
RETE&nbsp;matrix generation). This would become a "one 
off"&nbsp;packaging\deployment action. At runtime you'd deserialise the 
rulebase. Also have a look at AgendaGroups - they allow you to trigger sub-sets 
of rules in the rulebase.</FONT></SPAN><SPAN 
class=348043015-22032007>&nbsp;</SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org 
  [mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>Kunal 
  Shah<BR><B>Sent:</B> 22 March 2007 14:37<BR><B>To:</B> 
  rules-users@lists.jboss.org<BR><B>Subject:</B> [rules-users] Can Jboss rules 
  handle large no. of RuleBases?<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I am new to JBoss rules and trying 
  to figure out whether we can use it in our application. I have one doubt about 
  its usability in our app after reading documentation.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Documentation says that creation 
  of RuleBase is a heavy operation and shouldn&#8217;t occur many times. But in our 
  app we have thousands of entities each possibly having a separate RuleBase. Is 
  this feasible?&nbsp; </SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Basically rules used by one entity 
  may not be used by other (or should not be used in certain cases). So is there 
  a way of sharing a RuleBase among multiple entities but not sharing all the 
  rules defined in it, e.g. when we create WorkingMemory can you specify to use 
  rules having certain property only like &#8216;namespace&#8217; (or 
  package)?</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I will appreciate any 
  pointers/ideas regarding this.</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal><FONT face="Times Roman" color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Times Roman'">Kunal Shah 
  </SPAN></FONT><BR><FONT face="Times Roman" color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Times Roman'">Development 
  </SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times Roman" color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Times Roman'"></SPAN></FONT>&nbsp;</P>
  <P class=MsoNormal></P>
  <P class=MsoNormal><STRONG><B><FONT face="Times Roman" color=black 
  size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Times Roman'"></SPAN></FONT></B></STRONG>&nbsp;</P>
  <P class=MsoNormal><STRONG><B><FONT face="Times Roman" color=black 
  size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times Roman'">214-445-2121</SPAN></FONT></B></STRONG></P>
  <P class=MsoNormal><STRONG><B><FONT face="Times Roman" color=black 
  size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times Roman'">972-934-7376 
  (fax)</SPAN></FONT></B></STRONG></P>
  <P class=MsoNormal><STRONG><B><FONT face="Times Roman" color=black 
  size=3><SPAN 
  style="FONT-SIZE: 12pt; COLOR: black; FONT-FAMILY: 'Times Roman'"><A 
  href="mailto:kshah@sensorlogic.com"><FONT size=2><SPAN 
  style="FONT-WEIGHT: normal; FONT-SIZE: 10pt">kshah@sensorlogic.com</SPAN></FONT></A></SPAN></FONT></B></STRONG></P>
  <P class=MsoNormal><FONT face="Times Roman" color=blue size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Times Roman'">www.sensorlogic.com 
  </SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P></DIV></BLOCKQUOTE></BODY></HTML>