Prasanta,
At this moment, there is no servicemix-drools SU archetype. Please file a JIRA to have it created... For now, you can just use the plain SU archetype and go from there. Have a look at http://incubator.apache.org/servicemix/what-is-a-jbi-su-and-how-do-i-create-one.html, but use -DarchetypeArtifactId=servicemix-service-unit instead. After that is done, you add a dependency to servicemix-drools to the pom.xml that has been generated: <dependency> <groupId>org.apache.servicemix</groupId> <artifactId>servicemix-http</artifactId> <version>${servicemix-version}</version> </dependency> Now all you have to do is modify your xbean.xml to configure the Drools service endpoints. Maven will take care of packaging it a SU targeted at servicemix-drools. Gert pksahoo wrote: > > How can I create a service unit to use the drools rules engine? Please > share the maven archetype and, if possible, an example > > My JMS client is cnfigured with servicemix drool SU. I am getting > following error. > > Please advise. > > Here is the details of error: > 10:13:49,928 | WARN | pool-component.servicemix-jms-thread-2 | > DefaultBroker | rvicemix.jbi.nmr.DefaultBroker 341 | ServiceName > ({urn:logicblaze:soa:loanbroker}myDroolsService) specified for routing, > but can't find it registered > 10:13:49,928 | WARN | pool-component.servicemix-jms-thread-2 | > DefaultBroker | rvicemix.jbi.nmr.DefaultBroker 341 | ServiceName > ({urn:logicblaze:soa:loanbroker}myDroolsService) specified for routing, > but can't find it registered > 10:13:49,928 | ERROR | pool-component.servicemix-jms-thread-2 | > plexingConsumerProcessor | ultiplexingConsumerProcessor$1 100 | Error > while handling jms message > javax.jbi.messaging.MessagingException: Could not find route for exchange: > InOut[ > id: ID:169.254.185.179-1133f6208c3-5:0 > status: Active > role: provider > service: {urn:logicblaze:soa:loanbroker}myDroolsService > operation: Hello > in: <?xml version="1.0" encoding="UTF-8"?><HelloRequest > xmlns="urn:/HelloWorld2.wsdl" > xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> > <hello>Hello from Vishal - </hello> > </HelloRequest> > ] for service: {urn:logicblaze:soa:loanbroker}myDroolsService and > interface: null > at > org.apache.servicemix.jbi.nmr.DefaultBroker.sendExchangePacket(DefaultBroker.java:295) > at > org.apache.servicemix.jbi.security.SecuredBroker.sendExchangePacket(SecuredBroker.java:81) > at > org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:793) > at > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:381) > at > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:417) > at > org.apache.servicemix.common.AsyncBaseLifeCycle.sendConsumerExchange(AsyncBaseLifeCycle.java:572) > at > org.apache.servicemix.jms.multiplexing.MultiplexingConsumerProcessor$1.run(MultiplexingConsumerProcessor.java:98) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) > at java.lang.Thread.run(Thread.java:619) > > [ Show ยป ] Jawed Khan [18/Jun/07 08:27 AM] Here is the details of error: > 10:13:49,928 | WARN | pool-component.servicemix-jms-thread-2 | > DefaultBroker | rvicemix.jbi.nmr.DefaultBroker 341 | ServiceName > ({urn:logicblaze:soa:loanbroker}myDroolsService) specified for routing, > but can't find it registered 10:13:49,928 | WARN | > pool-component.servicemix-jms-thread-2 | DefaultBroker | > rvicemix.jbi.nmr.DefaultBroker 341 | ServiceName > ({urn:logicblaze:soa:loanbroker}myDroolsService) specified for routing, > but can't find it registered 10:13:49,928 | ERROR | > pool-component.servicemix-jms-thread-2 | plexingConsumerProcessor | > ultiplexingConsumerProcessor$1 100 | Error while handling jms message > javax.jbi.messaging.MessagingException: Could not find route for exchange: > InOut[ id: ID:169.254.185.179-1133f6208c3-5:0 status: Active role: > provider service: {urn:logicblaze:soa:loanbroker}myDroolsService > operation: Hello in: <?xml version="1.0" encoding="UTF-8"?><HelloRequest > xmlns="urn:/HelloWorld2.wsdl" > xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <hello>Hello from > Vishal - </hello> </HelloRequest> ] for service: > {urn:logicblaze:soa:loanbroker}myDroolsService and interface: null at > org.apache.servicemix.jbi.nmr.DefaultBroker.sendExchangePacket(DefaultBroker.java:295) > at > org.apache.servicemix.jbi.security.SecuredBroker.sendExchangePacket(SecuredBroker.java:81) > at > org.apache.servicemix.jbi.container.JBIContainer.sendExchange(JBIContainer.java:793) > at > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:381) > at > org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:417) > at > org.apache.servicemix.common.AsyncBaseLifeCycle.sendConsumerExchange(AsyncBaseLifeCycle.java:572) > at > org.apache.servicemix.jms.multiplexing.MultiplexingConsumerProcessor$1.run(MultiplexingConsumerProcessor.java:98) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) > at java.lang.Thread.run(Thread.java:619) > > > Thanks, > Prasanta > -- View this message in context: http://www.nabble.com/servicemix-Drool-engine-Issue-tf3942025s12049.html#a11192562 Sent from the ServiceMix - Dev mailing list archive at Nabble.com.