hello,

i am not able to configure the drools component in servicemix 3.1. Anyway i was not follwing the mailling list and i could not find any answer on the ne right now. So i see there is 2 classes org.apache.servicemix.*components*.drools.DroolsComponent and org.apache.servicemix.drools.DroolsComponent
what is the difference? which one should i use to configure the routing?

So, in both cases there is a classpath problem.
- When using org.apache.servicemix.components.drools.DroolsComponent
Caused by: java.lang.NoClassDefFoundError: org/drools/io/RuleBaseLoader

-org.apache.servicemix.drools.DroolsComponent
Caused by: java.lang.NoClassDefFoundError: org/apache/servicemix/common/DefaultComponent

Could someone telle me what is wrong? I could not find both classes in servicemix 3.1 nor in 3.0....???

Which one is the one that should be used? And what is the configuration for the drools component?

This is how i am doing ...

   <sm:activationSpec componentName="router"
                  service="drools:router">
             <sm:component>
<bean class="org.apache.servicemix.drools.component.DroolsComponent"> <property name="ruleBaseResource" value="/WEB-INF/rules/router.drl" />
                 </bean>
             </sm:component>
         </sm:activationSpec>

Regards,
Daniel

Reply via email to