Assuming you simply mean a web application, and not EJB too then use of a StatelessKnowledgeSession per HTTP request offers the best scalability.<br><br>You can create the KnowledgeBase in a variety of standard ways; ServletContextListener, @Singleton etc but your goal would be to create a singleton instance of your KnowledgeBase.<br>
<br>If you mean to include EJB too then a SLSB can be used to handle interaction with your StatelessKnowledgeSession.<br><br>If you need StatefulKnowledgeSessions then keeping then in HTTP session scope is an option.<br><br>
If you can use other Java web-frameworks, seam, spring etc then AFAIK your options become wider.<br><br>With kind regards,<br><br>Mike  <br><br><div class="gmail_quote">2011/4/29 Abhay B. Chaware <span dir="ltr">&lt;<a href="mailto:Abhay.Chaware@kpitcummins.com">Abhay.Chaware@kpitcummins.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi </span></font></p>

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">I have a simple j2ee web app and would like to make use of
drools in it. What’s the best way for me to implement this ?</span></font></p>

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Thanks</span></font></p>

<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>

</div>

<br clear="all"> This message contains information that may be privileged or confidential and is the property of the KPIT Cummins Infosystems Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Cummins Infosystems Ltd. does not accept any liability for virus infected mails.
</div>



<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>
<br></blockquote></div><br>