Drools 5 introduces the Business Logic integration Platform which provides a unified and integrated platform for Rules, Workflow and Event Processing. Itβs been designed from the ground up so that each aspect is a first class citizen, with no compromises.
Drools 5 has splitted up into 4 main sub projects:
- Drools Guvnor (BRMS/BPMS)
- Drools Expert (rule engine)
- Drools Flow (process/workflow)
- Drools Fusion (cep/temporal reasoning)
In this example we will focus on how we can use Drools Expert inside JBoss Application Server 7.
- We are using JBoss AS 7.1.1.Final which can be downloaded from the following link: http://www.jboss.org/jbossas/downloads.
- Download Drools 5.4.0.Final from the following link: http://www.jboss.org/drools/downloads.
- Extract the downloaded Drools
drools-distribution-5.4.0.Final.zip(87.7 MB). - Create a directory with the name
org/drools/maininside the JBoss AS7 modules directoryjboss-as-7.1.1.Final/modules. - Copy all the binaries (JAR) files from
drools-distribution-5.4.0.Final/binariesand paste them inside thejboss-as-7.1.1.Final/modules/org/drools/main. - Create a file
module.xmlinsidejboss-as-7.1.1.Final/modules/org/drools/mainas the following:<?xml version='1.0' encoding='UTF-8'?> <module xmlns='urn:jboss:module:1.1' name='org.drools'> <resources> <resource-root path='antlr-2.7.7.jar'/> <resource-root path='antlr-3.3.jar'/> <resource-root path='antlr-runtime-3.3.jar'/> <resource-root path='bcmail-jdk14-138.jar'/> <resource-root path='bcprov-jdk14-138.jar'/> <resource-root path='dom4j-1.6.1.jar'/> <resource-root path='drools-clips-5.4.0.Final.jar'/> <resource-root path='drools-compiler-5.4.0.Final.jar'/> <resource-root path='drools-core-5.4.0.Final.jar'/> <resource-root path='drools-decisiontables-5.4.0.Final.jar'/> <resource-root path='droolsjbpm-introduction-docs-5.4.0.Final.jdocbook'/> <resource-root path='drools-jsr94-5.4.0.Final.jar'/> <resource-root path='drools-persistence-jpa-5.4.0.Final.jar'/> <resource-root path='drools-templates-5.4.0.Final.jar'/> <resource-root path='drools-verifier-5.4.0.Final.jar'/> <resource-root path='ecj-3.5.1.jar'/> <resource-root path='guava-r06.jar'/> <resource-root path='hibernate-jpa-2.0-api-1.0.1.Final.jar'/> <resource-root path='itext-2.1.2.jar'/> <resource-root path='javassist-3.14.0-GA.jar'/> <resource-root path='jsr94-1.1.jar'/> <resource-root path='jta-1.1.jar'/> <resource-root path='jxl-2.6.10.jar'/> <resource-root path='knowledge-api-5.4.0.Final.jar'/> <resource-root path='knowledge-internal-api-5.4.0.Final.jar'/> <resource-root path='log4j-1.2.14.jar'/> <resource-root path='mvel2-2.1.0.drools16.jar'/> <resource-root path='protobuf-java-2.4.1.jar'/> <resource-root path='slf4j-api-1.6.4.jar'/> <resource-root path='stringtemplate-3.2.1.jar'/> <resource-root path='xml-apis-1.3.04.jar'/> <resource-root path='xmlpull-1.1.3.1.jar'/> <resource-root path='xpp3_min-1.1.4c.jar'/> <resource-root path='xstream-1.4.1.jar'/> </resources> </module>
- Make sure that your WAR file has the right dependencies defined inside the
META-INF/MANIFEST.MFas the following:Dependencies: org.drools
Where
org.droolsis the name of the module which we created in previous steps.
Related Posts
- Java EE 6 Testing Part II β Introduction to Arquillian and ShrinkWrap
- Unit Testing JBoss 5 Services
- JBoss PojoCache configuration
- JBoss AS 5.0 is out!
- JBoss β Stacking Login Modules
- Previous Entry: Comparing Device Description Repositories
Reference: Running Drools 5.4.0 Final as a JBoss AS 7 module from our JCG partner Samuel Santos at the Samaxes blog.
Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy
Thank you!
We will contact you soon.
Tags
JBoss JBoss Drools
π Photo of Samuel Santos
Samuel SantosNovember 7th, 2012Last Updated: November 7th, 2012
Samuel SantosNovember 7th, 2012Last Updated: November 7th, 2012
0 86 1 minute read

This site uses Akismet to reduce spam. Learn how your comment data is processed.