Assuming you simply mean a web application, and not EJB too then use of a
StatelessKnowledgeSession per HTTP request offers the best scalability.
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.
If you mean to include EJB too then a SLSB can be used to handle interaction
with your StatelessKnowledgeSession.
If you need StatefulKnowledgeSessions then keeping then in HTTP session
scope is an option.
If you can use other Java web-frameworks, seam, spring etc then AFAIK your
options become wider.
With kind regards,
Mike
2011/4/29 Abhay B. Chaware <Abhay.Chaware(a)kpitcummins.com>
Hi
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 ?
Thanks
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.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users