Hi Jervisliu,

       I have a similar case where in I need to integrate Guvnor to one of my web application which is developed in Struts Framework... Can you pls suggest me how can I do this?


Deepak Prabhakar Jambhekar


-----rules-users-bounces@lists.jboss.org wrote: -----

To: Rules Users List <rules-users@lists.jboss.org>
From: Jervisliu <jliu@redhat.com>
Sent by: rules-users-bounces@lists.jboss.org
Date: 11/27/2009 09:45AM
Subject: Re: [rules-users] Drools with Web Application

Things can be very straightforward if your web application is GWT based.
You can use GWT RPC to talk to the Guvnor server. See
trunk\drools-guvnor\src\main\java\org\drools\guvnor\server\ServiceImplementation.java
for details. Most functions that are called from Guvnor GUI are
implemented in this class. If this doesnt work for you, you will need to
somehow expose Guvnor server side functions (ServiceImplementation.java)
by yourself, eg, through a Servlet or through a RESTful service
interface.  Unfortunately Guvnor does not have this capability yet,
though there were some talks about implementing such features in the
future. You may want to take a look at Apache CXF [1] or JBOSS RESTEasy
[2] on how to use a JSR-311 implementation to publish Guvnor as Restful
(Atom/Pub) services. Let me know if you have interest to explore this
further, I can provide more information on this.

[1].http://cwiki.apache.org/CXF20DOC/jax-rs.html
[2]. http://www.jboss.org/resteasy/

Cheers,
Jervis
> Hello,
>
> Drools is very new to me. So please excuse me if this question sounds too naive.
>
> Basically my requirement is: I have a web based (3-tier j2ee)
> application which is
> deployed in JBoss AS. Now I want to incorporate some business rule
> implementations with this application so that end users, who are not
> very technical, can add/modify the rules according to their need. I
> suppose Drools Guvnor will be the front end and rules repository and
> Drools Expert will be
> the back end for such requirements. Please correct me if I am wrong.
>
> I had gone through the drools documentation. That talks about
> stand-alone application for guvnor itself, but I want to use Guvnor
> inside my existing application itself, preferably by using some Guvnor API.
>
> Can some one please provide some insight on how to do this. Also, I'll
> appreciate if some one can point me to some getting started/best
> practice documents for these stuffs?
>
> Many thanks in advance,
> --
> Sahid
> Argue with idiots, and you become an idiot. - PG
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>  

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you