I don't know what frameworks you were thinking of using, but this might be a
reasonable basic example of a Java web application with Drools components:
It's something I have been knocking up as a minimal example project. As such, it's
a work in progress, and the Drools functionality is *very* minimal. I'm just at the
stage where I'm looking to make that part of the projects a little bit richer.
It's built on Maven and the Spring Framework. As such you should be able to cd into
the root of the project and run "mvm jetty:run" to run it up in a web
My tip for getting your project up and running initially would be to ignore JBoss AS for
now, and run your project up on Tomcat. It should reduce the complexity of your
deployment, so you can concentrate on your application instead. At a later stage, you may
find it worth moving to JBoss AS as your application server, in which case your app would
be running up inside Tomcat anyway, so if your app works under Tomcat, there should be
little or no change to migrate to JBoss AS.
For your local dev purposes, this has the added benefit that maven can spawn a Tomcat
container on the fly, so you don;t need to worry too much about server config.
On 17 Jan 2013, at 10:59, Thomas Söhngen <thomas.soehngen(a)stockpulse.de> wrote:
I am currently evaluating Drools for our needs, from the features it seems to be a
perfect fit. I am a Java developer, but unfortunately I have no background in enterprise
application servers and I am currently stuck trying to setup a testing environment. A
short summary of our current setup and how we want to use Drools:
We are using Storm to accumulate a large number of messages from around the web
From these we create streams of message metadata (like sentiment) for different topics
We have additional streams like stock-tickers
We have a knowledge-base of additional facts about companies (like market cap.) in MySQL
We want users to be able to define alerts triggered by rules based on these streams and
Storm is perfect for the data pre-processing and aggregation, Drools would fit in to
allow outsiders to define rules and evaluate them on the streams in realtime. My idea is,
to run Drools Fusion as a stand-alone application on a dedicated server or cluster of
servers. Drools Guvnor would be used as an interface for the rules. The rules would
trigger new events, which would be sent to a subscription channel (like Redis Pub/Sub).
As mentioned above, I have no experience in setting up and running Java application
servers. The Drools documentation seems to be very elaborate, but assume that you know how
to start such a service from scratch, which I don't. I know Java, but not at an
enterprise level, so all the Beans, wars, etc. are new to me. I setup a JBoss AS, which
was a pretty easy thing to do, but I am clueless about how to really "run"
Drools on it and what to do next.
So what would be the next steps to get a server, where I can send messages to? Are there
any tutorials or guidelines which describe how to built such a thing from the very
beginning? Any help or suggestion would be very appreciated!
Regards & thanks in advance,
rules-users mailing list