After 2 years, I am trying to upgrade from drools 5.0 to latest. The way we are using the drools: the client apps(in c# and ruby) sends the request to drools-server 5.0. This execution server gets the rules .pkg file from guvnor using the properties files that map rules package at guvnor and response with output of rules execution. Unfortunately, the new execution server doesn't seems to work same way as the new one is completely different. I deployed drools-camel-server-5.4.war and saw how test.jsp is working. Then I changed knowledge-service.xml to replace the local drl resource to remote pkg at guvnor as follows: <drools:resource type="DRL" source="classpath:test.drl"/> to <drools:resource type="PKG" source="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/test/ex" basicAuthentication="enabled" username="admin" password="admin" />
When I ran the test.jsp, I got exception, snippet below. There were few other warning exceptions too, but not sure which is cause this problem. To make my question short, I want to know is there at quick example or docs that explain how I can use drools-camel-server to response the actions(output of execution) to external app that sends the request with conditions, where camel server gets the rules pkg from guvnor? I have create the jersey based webservice to do exactly the same, but I want to understand how this new camel-based server works. I appreciate any kind of your help. ERROR [org.apache.camel.processor.DefaultErrorHandler] (http--127.0.0.1-8080-4) Failed delivery for exchangeId: ID-NormanDev2-52157-1335809674758-0-1. Exhausted after delivery attempt: 1 caught: org.apache.camel.RuntimeCamelException: Body of in message not of the expected type 'org.drools.command.Command' for uridrools://node1/ksession1: org.apache.camel.RuntimeCamelException: Body of in message not of the expected type 'org.drools.command.Command' for uridrools://node1/ksession1 at org.drools.camel.component.DroolsExecuteProducer.process(DroolsExecuteProducer.java:63) [drools-camel-5.4.0.CR1.jar:5.4.0.CR1] at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) [camel-core-2.9.0.jar:2.9.0] at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73) [camel-core-2.9.0.jar:2.9.0] at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:115) [camel-core-2.9.0.jar:2.9.0] at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:285) [camel-core-2.9.0.jar:2.9.0] -- View this message in context: http://drools.46999.n3.nabble.com/upgrading-drools-server-5-0-to-drools-camel-server-5-4-tp3951496.html Sent from the Drools: User forum mailing list archive at Nabble.com. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users