<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Arial, sans-serif;font-size:12pt;color:#000000;"><DIV><FONT face="symbol"><FONT size="3">Dear mailing-list/forum reader,</FONT></FONT><FONT face="symbol"><FONT size="3"><BR></FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3"></FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">this post is quite long, so thanks in advance for willing to read through this ;-)</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3"></FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">I need to set up a test for using Guvnor in cluster.</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">I searched in the archive, and I know there are few threads regarding this.</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">But some are for me already too "high-level", bcs I didn't have many experiences on this, so I'd like to start from the
beginning</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">Would be very thankful If you could share some advices on development strategies, based on following situation and questions:</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3"></FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">Situation: </FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">- several instances of one web-app (on several servers), say MyApp , with one MySQL server as back-end, should perform some value persisting into DB; each operation should get feedbacks, if this violates any rules defined using the BRMS.</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">- Rules will be updated rarely (approx. once a year)</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3"></FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">1. As my understanding, Guvnor is just another web-app with DB on the back-end. </FONT></FONT></DIV><DIV><FONT
face="symbol"><FONT size="3">If MyApp has its DB already prefilled (because this is already running for quite some time) and according to the documentation, BRMS will create the tables the first time it is started if it's running again empty RDBMS, is it still possible to use this DB anyway? Is there any additional maintenance/handling required to do this?</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3"></FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">2. Which one is in general the better (or correct) strategy:</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">- use one common DB for both MyApp and Guvnor or separate DBs (use another external RDBMS for Guvnor)?</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">- having as many instances of Guvnor as MyApp, or just having one single instance of this?</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3"></FONT></FONT></DIV><DIV><FONT face="symbol"><FONT
size="3">3. Having seen the documentation on integrating rules from Guvnor with app, I understand that there's need of using RuleAgent.</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">- RuleAgent (and Statefull/StatelessSession too) is still part of the "old" drools-core. Would it be later a problem to switch to the new APIs?</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">- I need to get the RuleClient from a stateless EJB; does this mean only StatelessSession is usable in this case?</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3"></FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">4. How can I correctly implement the communication between MyApp and Guvnor? </FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">I wouldn't like to fetching the rule base each time the persisting operation is performed. </FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">- Which alternatives are there to avoid
constantly communicate with Guvnor (especially if there is actually no rule-update happened), but still getting the most actual rule? </FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">- Maybe kind of storing the rules in DB which is keep synchronized with Guvnor, and MyApp just fetch the rules from DB?</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3"></FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">Again, any reply would be very appreciated.</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3"></FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">Regards</FONT></FONT></DIV><DIV><FONT face="symbol"><FONT size="3">Paul</FONT></FONT></DIV></div><br>
</body></html>