Integrate drools 5.4 into JBoss as 7.1.1

Source: Internet
Author: User
Integrate drools 5.4 into JBoss as 7.1.1

Author: chszs, reprinted with note.
Author blog homepage: http://blog.csdn.net/chszs

Drools5 introduces the business logic integration platform, which provides a unified and integrated platform that supports rule, workflow, and event processing. Everything is re-designed.

Drools 5 can be divided into four main sub-projects: guvnor (brms/BPMs), expert (rule engine), flow (processing/workflow), and fusion (CEP/temporal reasoning ).

This document describes how to use drools expert in JBoss as 7.

Author: chszs, reprinted with note. Author blog homepage: http://blog.csdn.net/chszs

JBoss as 7.1.1 edition: http://www.jboss.org/jbossas/downloads

Drools 5.4.0: http://www.jboss.org/drools/downloads

1. Unzip the downloaded drools 5.4.0 package: drools-distribution-5.4.0.Final.zip

2. Create a directory named ORG/drools/main under the modules subdirectory of JBoss.

3. Copy the drools JAR file to the JBoss/modules/org/drools/main directory.

4. Create the module. xml file in the JBoss/modules/org/drools/main directory. The content is as follows:

<?xmlversion="1.0"encoding="UTF-8"?><modulexmlns="urn:jboss:module:1.1"name="org.drools">  <resources>    <resource-rootpath="antlr-2.7.7.jar"/>    <resource-rootpath="antlr-3.3.jar"/>    <resource-rootpath="antlr-runtime-3.3.jar"/>    <resource-rootpath="bcmail-jdk14-138.jar"/>    <resource-rootpath="bcprov-jdk14-138.jar"/>    <resource-rootpath="dom4j-1.6.1.jar"/>    <resource-rootpath="drools-clips-5.4.0.Final.jar"/>    <resource-rootpath="drools-compiler-5.4.0.Final.jar"/>    <resource-rootpath="drools-core-5.4.0.Final.jar"/>    <resource-rootpath="drools-decisiontables-5.4.0.Final.jar"/>    <resource-rootpath="droolsjbpm-introduction-docs-5.4.0.Final.jdocbook"/>    <resource-rootpath="drools-jsr94-5.4.0.Final.jar"/>    <resource-rootpath="drools-persistence-jpa-5.4.0.Final.jar"/>    <resource-rootpath="drools-templates-5.4.0.Final.jar"/>    <resource-rootpath="drools-verifier-5.4.0.Final.jar"/>    <resource-rootpath="ecj-3.5.1.jar"/>    <resource-rootpath="guava-r06.jar"/>    <resource-rootpath="hibernate-jpa-2.0-api-1.0.1.Final.jar"/>    <resource-rootpath="itext-2.1.2.jar"/>    <resource-rootpath="javassist-3.14.0-GA.jar"/>    <resource-rootpath="jsr94-1.1.jar"/>    <resource-rootpath="jta-1.1.jar"/>    <resource-rootpath="jxl-2.6.10.jar"/>    <resource-rootpath="knowledge-api-5.4.0.Final.jar"/>    <resource-rootpath="knowledge-internal-api-5.4.0.Final.jar"/>    <resource-rootpath="log4j-1.2.14.jar"/>    <resource-rootpath="mvel2-2.1.0.drools16.jar"/>    <resource-rootpath="protobuf-java-2.4.1.jar"/>    <resource-rootpath="slf4j-api-1.6.4.jar"/>    <resource-rootpath="stringtemplate-3.2.1.jar"/>    <resource-rootpath="xml-apis-1.3.04.jar"/>    <resource-rootpath="xmlpull-1.1.3.1.jar"/>    <resource-rootpath="xpp3_min-1.1.4c.jar"/>    <resource-rootpath="xstream-1.4.1.jar"/>  </resources></module>

Make sure that the war file has the correct dependency, defined in META-INF/manifest. MF, as follows:

Dependencies: org.drools

Org. drools is the module name.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.