首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

Drools5.x 跟 Spring3.x整合

2012-08-11 
Drools5.x 和 Spring3.x整合整合需要jar包?drools-spring-5.2.0.Final.jar在droolsjbpm-integration-distr

Drools5.x 和 Spring3.x整合

整合需要jar包?drools-spring-5.2.0.Final.jar在droolsjbpm-integration-distribution-5.2.0.Final\binaries文件夹下。

?

spring-drools 配置文件

?

<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"xmlns:flex="http://www.springframework.org/schema/flex"xmlns:drools="http://drools.org/schema/drools-spring"  xsi:schemaLocation="http://www.springframework.org/schema/beans           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd           http://www.springframework.org/schema/context           http://www.springframework.org/schema/context/spring-context-2.5.xsd           http://www.springframework.org/schema/aop           http://www.springframework.org/schema/aop/spring-aop-2.5.xsd           http://www.springframework.org/schema/tx            http://www.springframework.org/schema/tx/spring-tx-2.5.xsd           http://www.springframework.org/schema/flex           http://www.springframework.org/schema/flex/spring-flex-1.0.xsd         http://drools.org/schema/drools-spring         http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-container/drools-spring/src/main/resources/org/drools/container/spring/drools-spring-1.0.0.xsd">    <drools:kbase id="kBase">    <drools:resources>    <drools:resource type="DRL" source="classpath:com/iyspace/drools/resource/insert.drl"/>    </drools:resources>    <drools:configuration>    <drools:mbeans enabled="true"/>    <drools:event-processing-mode mode="STREAM"/>    </drools:configuration>    </drools:kbase>     <drools:ksession kbase="kBase" type="stateful" id="statefulKnowledgeSession"/>     <drools:ksession kbase="kBase" type="stateless" id="ksession" name="stateless1"/></beans>

?

?

?

热点排行