<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 10pt; color: #000000'>thanks a lot!<div><br></div><div>I'm trying to setup a decision service, _without_ having to code in java. </div><div><br></div><div>I'm kind of swamped at the moment in other stuff but will get back to this ASAP and report back.</div><div><br></div><div>Thanks again,</div><div>Rubén<br><br><hr><b>De: </b>"Jervisliu" <jliu@redhat.com><br><b>Para: </b>"Rules Users List" <rules-users@lists.jboss.org><br><b>Enviados: </b>Lunes, 17 de Mayo 2010 1:25:32<br><b>Asunto: </b>Re: [rules-users] Drools5 in tomcat 5<br><br>Examples below shows how to use drools Camel integration. With Camel <br>integration, you can host drools rule engine as a Camel service. The <br>service can be based on Web services, REST, JMS or whatever capabilities <br>Camel offers.<br>http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-pipeline/drools-camel/src/test/java/org/drools/camel/component<br><br>You can also use Drools pipeline to expose a drools rule engine as <br>service. For example, example below is exposing Drools through JMS:<br>http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-pipeline/drools-messenger-jms/src/test/java/org/drools/runtime/pipeline/impl/SimpleJmsMessengerTest.java<br><br>If you do a google search, you can also find some nice docs on how to <br>use drools-pipeline to expose drools engine as web services etc.<br><br>Hope this helps,<br>Jervis<br><br><br>Rubén Marrero wrote:<br>> Oh!<br>><br>> I'm tempted to ask _why_ did anyone think that having a great web <br>> interface where you can create, test, store & version (I would think <br>> that at least exposing and securing) business tulers simply should <br>> fall short of _executing_ said rules? If Guvnor (or some other <br>> component, I'm learning here) could help me outsource my business <br>> rules, I could use in no matter what platform/ language. All the java <br>> coders could embed it and the rest of us could just execute it.<br>><br>> But I won't ask :)<br>><br>> Instead let me rephrase my original question. What's the best way to <br>> setup a remote server, that can receive my data, go through the rules, <br>> and return a response? That does not involve java coding? drools-server?<br>><br>> Thanks,<br>> Rubén<br>> ------------------------------------------------------------------------<br>> *De: *"Esteban Aliverti" <esteban.aliverti@gmail.com><br>> *Para: *"Rules Users List" <rules-users@lists.jboss.org><br>> *CC: *"Diego Fabian Lopez Ruiz" <diego@lingo.mx><br>> *Enviados: *Viernes, 14 de Mayo 2010 12:09:35<br>> *Asunto: *Re: [rules-users] Drools5 in tomcat 5<br>><br>> Bad news! Guvnor doesn't execute the rules! It only acts as a <br>> repository! You can create your rules, test your rules and versioning <br>> them too, but if you want to execute them in a real business scenario, <br>> you have to code it. I know Drools already has some modules to do what <br>> you are trying to achieve, they are drools-pipeline (Which can use <br>> camel) or even drools-server (which is a simple servlet that executes <br>> commands). Unfortunately I'm not an expert on those modules, but you <br>> can always ask here for help.<br>><br>> Best,<br>><br>> 2010/5/14 Rubén Marrero <ruben@lingo.mx <mailto:ruben@lingo.mx>><br>><br>> The idea is to use Guvnor as a REST-accessible BRMS. <br>><br>> We'll design, edit, test rules in guvnor, then execute them from<br>> the PHP web app in the background (with cURL or something ) or<br>> maybe we'll use proper webservices, as long as we can keep thing<br>> simple. <br>><br>> Since we are already using tomcat 5 as our reporting endpoint,<br>> we'd like to just add the guvnor as a web app, as long as guvnor<br>> can execute the rules we setup in the nice web interface and<br>> respond with a json package to a REST json request.<br>><br>> Guvnor _does_ execute rules, right? :-)<br>><br>> I'll try removing the jars you mention and then report back.<br>><br>> Thx,<br>> Rubén<br>> ------------------------------------------------------------------------<br>> *De: *"Esteban Aliverti" <esteban.aliverti@gmail.com<br>> <mailto:esteban.aliverti@gmail.com>><br>> *Para: *"Rules Users List" <rules-users@lists.jboss.org<br>> <mailto:rules-users@lists.jboss.org>><br>> *Enviados: *Viernes, 14 de Mayo 2010 6:49:53<br>> *Asunto: *Re: [rules-users] Drools5 in tomcat 5<br>><br>><br>> I didn't test Guvnor in Tomcat 5, but I did it in Tomcat 6. The<br>> only thing you need to do is to remove el-ri-xxx.jar and<br>> el-api-xxx.jar from Guvnors libraries (open the war file, browse<br>> to WEB-INF/lib and remove the files). This is because Tomcat<br>> already provides this libraries. That is the only thing I have to<br>> do when I want to use Guvnor deployed in a Tomcat.<br>> And remember that Drools is just a framework (a bunch of jars if<br>> you want), so you can use it everywhere: console app, desktop app,<br>> web app. Guvnor is a BRMS that you can use to create your rules,<br>> manage their life cycle and set as main repository (You can do<br>> more things too). It is important to make this distinction, maybe<br>> you just want to use drools expert/flow/fusion and not Guvnor.<br>><br>> Best, <br>><br>> 2010/5/14 Rubén Marrero <ruben@lingo.mx <mailto:ruben@lingo.mx>><br>><br>> Hi all:<br>><br>> I want to add drools to a php application. Currently we are<br>> using Tomcat 5 to execute BIRT reports and works great.<br>><br>> We want to keep using Tomcat (this version in particular) and<br>> just drop the Drools WAR so to disturb as little as possible<br>> our current setup.<br>><br>> Is Tomcat 5 a supported platform to run Drools 5? any pointers<br>> to current docs?<br>><br>> Thanks in advance,<br>> Rubén<br>><br>> _______________________________________________<br>> rules-users mailing list<br>> rules-users@lists.jboss.org <mailto:rules-users@lists.jboss.org><br>> https://lists.jboss.org/mailman/listinfo/rules-users<br>><br>><br>><br>><br>> -- <br>> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>><br>> Esteban Aliverti<br>><br>> _______________________________________________<br>> rules-users mailing list<br>> rules-users@lists.jboss.org <mailto:rules-users@lists.jboss.org><br>> https://lists.jboss.org/mailman/listinfo/rules-users<br>><br>> _______________________________________________<br>> rules-users mailing list<br>> rules-users@lists.jboss.org <mailto:rules-users@lists.jboss.org><br>> https://lists.jboss.org/mailman/listinfo/rules-users<br>><br>><br>><br>><br>> -- <br>> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>><br>> Esteban Aliverti<br>><br>> _______________________________________________<br>> rules-users mailing list<br>> rules-users@lists.jboss.org<br>> https://lists.jboss.org/mailman/listinfo/rules-users<br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> rules-users mailing list<br>> rules-users@lists.jboss.org<br>> https://lists.jboss.org/mailman/listinfo/rules-users<br>> <br><br>_______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/rules-users<br></div></div></body></html>