META-INF.spring.drools-platform-runtime-servlet-application-context.xml Maven / Gradle / Ivy
The newest version!
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:websocket="http://www.springframework.org/schema/websocket" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/websocket http://www.springframework.org/schema/websocket/spring-websocket-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <context:component-scan base-package="org.chtijbug.drools.platform.runtime.servlet"/> <bean id="guvnorResource" class="org.chtijbug.drools.runtime.resource.GuvnorDroolsResource" factory-method="createGuvnorRessource"> <constructor-arg index="0" value="${guvnor.url}"/> <constructor-arg index="1" value="${guvnor.appName}"/> <constructor-arg index="2" value="${guvnor.packageName}"/> <constructor-arg index="3" value="${guvnor.packageVersion}"/> <constructor-arg index="4" value="${guvnor.username}"/> <constructor-arg index="5" value="${guvnor.password}"/> </bean> <util:list id="droolsResources" value-type="org.chtijbug.drools.runtime.resource.DroolsResource"> <ref bean="guvnorResource"/> </util:list> <bean id="platformRunner" class="org.chtijbug.drools.platform.runtime.servlet.DroolsPlatformKnowledgeBaseJavaEE" init-method="initPlatformRuntime"> <property name="webSocketHostname" value="${ws.hostname}"/> <property name="endPoint" value="${ws.endpoint}"/> <property name="webSocketPort" value="${ws.port}"/> <property name="platformServer" value="${knowledge.platformServer}"/> <property name="ruleBaseID" value="${knowledge.rulebaseid}"/> <property name="droolsResources"> <list> <ref bean="guvnorResource"/> </list> </property> </bean> <bean id="jmsclient" class="org.chtijbug.drools.platform.runtime.servlet.historylistener.ServletJmsStorageHistoryListener" init-method="initJMSConnection"> <property name="platformKnowledgeBaseJavaEE" ref="platformRunner"/> </bean> </beans>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy