Hello,
I place the rules descriptor ( router.xml) in the classpath and
then map the drools endpoint/bean in the servicemix/Spring descriptor(
servicemix.xml)
with this lines
<sm:activationSpec componentName="router"
service="drools:router">
<sm:component>
<bean
class="org.apache.servicemix.components.drools.DroolsComponent">
<property name="ruleBaseResource"
value="classpath:router.xml"/>
</bean>
</sm:component>
</sm:activationSpec>
If you don't find any drools example, I could send you one that I have done
to my project.
Cheers, Carles.
System integration department.
T-SYSTEMS Iberia.
vg wrote:
>
> Hi All,
> I am really stucked in this. Here's the senario. I want to activemq to
> trigger a program that I do to check the rules of the incoming message and
> then send them to recipients. Is this feasible? I tried looking at drool
> but cant seem to understand it much, where do I actually place the
> rule.xml file? I am really lost. Is there any example that I can look and
> get some idea or is there any other way to do it. The protocol that I want
> to apply is JMS at the moment. I am abit confused.
> Another thing is I have imported the project into Eclipse, how do I
> continue from there? I mean like if I want to test the sender and receiver
> example or something like that? I tried the File Poller example given but
> how to I actually get to the the output. Is it that I need to start up my
> servicemix first in a command windows?
>
> I am using the latest servicemix binary and src.
>
> Any help will be much appreciated.
> Thanking you guys in advance.
>
> VG
>
--
View this message in context:
http://www.nabble.com/rules-and-jms-tf2429269.html#a6791344
Sent from the ServiceMix - User mailing list archive at Nabble.com.