<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.&nbsp;</div><div><br></div><div>I'm kind of swamped at the moment in other &nbsp;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" &lt;jliu@redhat.com&gt;<br><b>Para: </b>"Rules Users List" &lt;rules-users@lists.jboss.org&gt;<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>&gt; Oh!<br>&gt;<br>&gt; I'm tempted to ask _why_ did anyone think that having a great web <br>&gt; interface where you can create, test, store &amp; version (I would think <br>&gt; that at least exposing and securing) business tulers simply should <br>&gt; fall short of _executing_ said rules? &nbsp;If Guvnor (or some other <br>&gt; component, I'm learning here) could help me outsource my business <br>&gt; rules, I could use in no matter what platform/ language. All the java <br>&gt; coders could embed it and the rest of us could just execute it.<br>&gt;<br>&gt; But I won't ask :)<br>&gt;<br>&gt; Instead let me rephrase my original question. What's the best way to <br>&gt; setup a remote server, that can receive my data, go through the rules, <br>&gt; and return a response? That does not involve java coding? drools-server?<br>&gt;<br>&gt; Thanks,<br>&gt; Rubén<br>&gt; ------------------------------------------------------------------------<br>&gt; *De: *"Esteban Aliverti" &lt;esteban.aliverti@gmail.com&gt;<br>&gt; *Para: *"Rules Users List" &lt;rules-users@lists.jboss.org&gt;<br>&gt; *CC: *"Diego Fabian Lopez Ruiz" &lt;diego@lingo.mx&gt;<br>&gt; *Enviados: *Viernes, 14 de Mayo 2010 12:09:35<br>&gt; *Asunto: *Re: [rules-users] Drools5 in tomcat 5<br>&gt;<br>&gt; Bad news! Guvnor doesn't execute the rules! It only acts as a <br>&gt; repository! You can create your rules, test your rules and versioning <br>&gt; them too, but if you want to execute them in a real business scenario, <br>&gt; you have to code it. I know Drools already has some modules to do what <br>&gt; you are trying to achieve, they are drools-pipeline (Which can use <br>&gt; camel) or even drools-server (which is a simple servlet that executes <br>&gt; commands). Unfortunately I'm not an expert on those modules, but you <br>&gt; can always ask here for help.<br>&gt;<br>&gt; Best,<br>&gt;<br>&gt; 2010/5/14 Rubén Marrero &lt;ruben@lingo.mx &lt;mailto:ruben@lingo.mx&gt;&gt;<br>&gt;<br>&gt; &nbsp; &nbsp; The idea is to use Guvnor as a REST-accessible BRMS. <br>&gt;<br>&gt; &nbsp; &nbsp; We'll design, edit, test rules in guvnor, then execute them from<br>&gt; &nbsp; &nbsp; the PHP web app in the background (with cURL or something ) or<br>&gt; &nbsp; &nbsp; maybe we'll use proper webservices, as long as we can keep thing<br>&gt; &nbsp; &nbsp; simple. <br>&gt;<br>&gt; &nbsp; &nbsp; Since we are already using tomcat 5 as our reporting endpoint,<br>&gt; &nbsp; &nbsp; we'd like to just add the guvnor as a web app, as long as guvnor<br>&gt; &nbsp; &nbsp; can execute the rules we setup in the nice web interface and<br>&gt; &nbsp; &nbsp; respond with a json package to a REST json request.<br>&gt;<br>&gt; &nbsp; &nbsp; Guvnor _does_ execute rules, right? :-)<br>&gt;<br>&gt; &nbsp; &nbsp; I'll try removing the jars you mention and then report back.<br>&gt;<br>&gt; &nbsp; &nbsp; Thx,<br>&gt; &nbsp; &nbsp; Rubén<br>&gt; &nbsp; &nbsp; ------------------------------------------------------------------------<br>&gt; &nbsp; &nbsp; *De: *"Esteban Aliverti" &lt;esteban.aliverti@gmail.com<br>&gt; &nbsp; &nbsp; &lt;mailto:esteban.aliverti@gmail.com&gt;&gt;<br>&gt; &nbsp; &nbsp; *Para: *"Rules Users List" &lt;rules-users@lists.jboss.org<br>&gt; &nbsp; &nbsp; &lt;mailto:rules-users@lists.jboss.org&gt;&gt;<br>&gt; &nbsp; &nbsp; *Enviados: *Viernes, 14 de Mayo 2010 6:49:53<br>&gt; &nbsp; &nbsp; *Asunto: *Re: [rules-users] Drools5 in tomcat 5<br>&gt;<br>&gt;<br>&gt; &nbsp; &nbsp; I didn't test Guvnor in Tomcat 5, but I did it in Tomcat 6. The<br>&gt; &nbsp; &nbsp; only thing you need to do is to remove el-ri-xxx.jar and<br>&gt; &nbsp; &nbsp; el-api-xxx.jar from Guvnors libraries (open the war file, browse<br>&gt; &nbsp; &nbsp; to WEB-INF/lib and remove the files). This is because Tomcat<br>&gt; &nbsp; &nbsp; already provides this libraries. That is the only thing I have to<br>&gt; &nbsp; &nbsp; do when I want to use Guvnor deployed in a Tomcat.<br>&gt; &nbsp; &nbsp; And remember that Drools is just a framework (a bunch of jars if<br>&gt; &nbsp; &nbsp; you want), so you can use it everywhere: console app, desktop app,<br>&gt; &nbsp; &nbsp; web app. Guvnor is a BRMS that you can use to create your rules,<br>&gt; &nbsp; &nbsp; manage their life cycle and set as main repository (You can do<br>&gt; &nbsp; &nbsp; more things too). It is important to make this distinction, maybe<br>&gt; &nbsp; &nbsp; you just want to use drools expert/flow/fusion and not Guvnor.<br>&gt;<br>&gt; &nbsp; &nbsp; Best, &nbsp;<br>&gt;<br>&gt; &nbsp; &nbsp; 2010/5/14 Rubén Marrero &lt;ruben@lingo.mx &lt;mailto:ruben@lingo.mx&gt;&gt;<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; Hi all:<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; I want to add drools to a php application. Currently we are<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; using Tomcat 5 to execute BIRT reports and works great.<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; We want to keep using Tomcat (this version in particular) and<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; just drop the Drools WAR so to disturb as little as possible<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; our current setup.<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; Is Tomcat 5 a supported platform to run Drools 5? any pointers<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; to current docs?<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; Thanks in advance,<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; Rubén<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; rules-users mailing list<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; rules-users@lists.jboss.org &lt;mailto:rules-users@lists.jboss.org&gt;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; https://lists.jboss.org/mailman/listinfo/rules-users<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; &nbsp; &nbsp; -- <br>&gt; &nbsp; &nbsp; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>&gt;<br>&gt; &nbsp; &nbsp; Esteban Aliverti<br>&gt;<br>&gt; &nbsp; &nbsp; _______________________________________________<br>&gt; &nbsp; &nbsp; rules-users mailing list<br>&gt; &nbsp; &nbsp; rules-users@lists.jboss.org &lt;mailto:rules-users@lists.jboss.org&gt;<br>&gt; &nbsp; &nbsp; https://lists.jboss.org/mailman/listinfo/rules-users<br>&gt;<br>&gt; &nbsp; &nbsp; _______________________________________________<br>&gt; &nbsp; &nbsp; rules-users mailing list<br>&gt; &nbsp; &nbsp; rules-users@lists.jboss.org &lt;mailto:rules-users@lists.jboss.org&gt;<br>&gt; &nbsp; &nbsp; https://lists.jboss.org/mailman/listinfo/rules-users<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; -- <br>&gt; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>&gt;<br>&gt; Esteban Aliverti<br>&gt;<br>&gt; _______________________________________________<br>&gt; rules-users mailing list<br>&gt; rules-users@lists.jboss.org<br>&gt; https://lists.jboss.org/mailman/listinfo/rules-users<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; rules-users mailing list<br>&gt; rules-users@lists.jboss.org<br>&gt; https://lists.jboss.org/mailman/listinfo/rules-users<br>&gt; &nbsp; <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>