THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
You can create a Drools Service Unit using the servicemix-drools-service-unit Maven archetype:
Code Block |
---|
mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-drools-service-unit \
-DarchetypeVersion=2010.01 \
-DgroupId=your.group.id \
-DartifactId=your.artifact.id \
-Dversion=your-version
|
Once you've customized the service unit, simply install the SU:
Code Block |
---|
mvn install
|
Info | ||
---|---|---|
Remember that to be deployable in ServiceMix, the ServiceUnit has to be embedded in a Service Assembly: only the Service Assembly zip file can be deployed in ServiceMix.
|
Endpoint Configuration
Code Block | ||
---|---|---|
| ||
<beans xmlns:drools="http://servicemix.apache.org/drools/1.0" xmlns:replaceMe="http://servicemix.apache.org/replaceMe"> <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> </beans> |
...