[rules-users] Drools5 in tomcat 5

Rubén Marrero ruben at lingo.mx
Mon May 17 12:24:17 EDT 2010


thanks a lot! 


I'm trying to setup a decision service, _without_ having to code in java. 


I'm kind of swamped at the moment in other stuff but will get back to this ASAP and report back. 


Thanks again, 
Rubén 


De: "Jervisliu" <jliu at redhat.com> 
Para: "Rules Users List" <rules-users at lists.jboss.org> 
Enviados: Lunes, 17 de Mayo 2010 1:25:32 
Asunto: Re: [rules-users] Drools5 in tomcat 5 

Examples below shows how to use drools Camel integration. With Camel 
integration, you can host drools rule engine as a Camel service. The 
service can be based on Web services, REST, JMS or whatever capabilities 
Camel offers. 
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-pipeline/drools-camel/src/test/java/org/drools/camel/component 

You can also use Drools pipeline to expose a drools rule engine as 
service. For example, example below is exposing Drools through JMS: 
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-pipeline/drools-messenger-jms/src/test/java/org/drools/runtime/pipeline/impl/SimpleJmsMessengerTest.java 

If you do a google search, you can also find some nice docs on how to 
use drools-pipeline to expose drools engine as web services etc. 

Hope this helps, 
Jervis 


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

_______________________________________________ 
rules-users mailing list 
rules-users at lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100517/2d14278e/attachment.html 


More information about the rules-users mailing list