| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- Generated by Apache ServiceMix Archetype --> |
| <beans xmlns:drools="http://servicemix.apache.org/drools/1.0" |
| xmlns:util="http://www.springframework.org/schema/util" |
| xmlns:replaceMe="http://servicemix.apache.org/replaceMe" xmlns="http://www.springframework.org/schema/beans" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://servicemix.apache.org/drools/1.0 http://servicemix.apache.org/schema/servicemix-drools-@{components.version}.xsd |
| http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> |
| |
| <!-- |
| The ServiceMix Drools component provides integration to the Drools Rules Engine. |
| |
| It can be used to deploy a rules set that will implement a router or an actual service. |
| |
| http://servicemix.apache.org/servicemix-drools.html |
| --> |
| |
| <!-- BEGIN SNIPPET: drools --> |
| <!-- |
| This drools endpoint implements rules described in router.drl file. |
| |
| Attributes: |
| service : the endpoint service name |
| endpoint : the endpoint name |
| ruleBaseResource : the DRL file location |
| namespaceContext : the Drool namespace context |
| --> |
| <drools:endpoint service="replaceMe:serviceName" |
| endpoint="drools" ruleBaseResource="classpath:router.drl" |
| namespaceContext="#nsContext" /> |
| |
| <drools:namespace-context id="nsContext"> |
| <drools:namespaces> |
| <drools:namespace prefix="bar">http://servicemix.apache.org/bar</drools:namespace> |
| </drools:namespaces> |
| </drools:namespace-context> |
| <!-- END SNIPPET: drools --> |
| |
| </beans> |