OSGI-INF.blueprint.servicemix-drools.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of servicemix-drools Show documentation
Show all versions of servicemix-drools Show documentation
The ServiceMix Drools component provides JBI integration to the Drools Rules Engine. It can be used to deploy a rules set that will implement a router or an actual service. A router will mostly act as a transparent proxy between the consumer and the target service provider mad will mostly be implemented by the jbi.route(uri) method below. This method creates a new exchange identical to the one received by the component and will send it to the specified destination. You can also send back a Fault if needed. A router can also be implemented by using directly the JBI Apis (available with the jbi helper) by using the provided client.
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0" xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"> <!-- Retrieve ManagementStrategy from OSGi service registry --> <reference id="managementStrategy" interface="org.fusesource.commons.management.ManagementStrategy"/> <bean id="servicemix-drools" class="org.apache.servicemix.drools.DroolsComponent"> <property name="executorFactory" ref="executorFactory" /> </bean> <bean id="executorFactory" class="org.apache.servicemix.executors.impl.ExecutorFactoryImpl"> <property name="defaultConfig"> <bean class="org.apache.servicemix.executors.impl.ExecutorConfig"> <property name="corePoolSize" value="${threadPoolCorePoolSize}"/> <property name="maximumPoolSize" value="${threadPoolMaximumPoolSize}"/> <property name="queueSize" value="${threadPoolQueueSize}"/> </bean> </property> <property name="managementStrategy" ref="managementStrategy"/> </bean> <bean id="endpoint-tracker" class="org.apache.servicemix.common.osgi.EndpointTracker"> <property name="component" ref="servicemix-drools" /> </bean> <reference-list id="endpoints" interface="org.apache.servicemix.common.osgi.EndpointWrapper" availability="optional"> <reference-listener ref="endpoint-tracker" bind-method="register" unbind-method="unregister" /> </reference-list> <service ref="servicemix-drools" interface="javax.jbi.component.Component"> <service-properties> <entry key="NAME" value="servicemix-drools" /> <entry key="TYPE" value="service-engine" /> </service-properties> </service> <service interface="org.apache.aries.blueprint.NamespaceHandler"> <service-properties> <entry key="osgi.service.blueprint.namespace" value="http://servicemix.apache.org/drools/1.0"/> </service-properties> <bean class="org.apache.xbean.blueprint.context.impl.XBeanNamespaceHandler"> <argument value="http://servicemix.apache.org/drools/1.0"/> <argument value="servicemix-drools.xsd"/> <argument ref="blueprintBundle"/> <argument value="META-INF/services/org/apache/xbean/spring/http/servicemix.apache.org/drools/1.0"/> </bean> </service> <cm:property-placeholder persistent-id="org.apache.servicemix.components.drools"> <cm:default-properties> <cm:property name="threadPoolCorePoolSize" value="8"/> <cm:property name="threadPoolMaximumPoolSize" value="32"/> <cm:property name="threadPoolQueueSize" value="256"/> </cm:default-properties> </cm:property-placeholder> </blueprint>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy