First, I'm pretty new to camel (and drools) and this question teeters between the two. I've combed the Drools forum for an answer to this question, but the discussions there relate more to using camel within drools - they are not camel centric. So, my question:
I'm trying to find out the best best to integrate a call to a drools server into my camel route. I stood up a drools server and I can send a java bean to it via small java client app that builds the drools command then makes a call to the rest service (using HTTPClient). The drools server looks at a few bean attributes, sets a field accordingly and returns the result which I can read. Now, I'd like my camel application to use that service (basically a Content Enricher) -- and I'll probably eventually route differently depending on the return. I believe I can move the code that builds the drools command, etc. from my little client app and into a method in my Bean. Then, I'd call that bean method to send the response and another method to unmarshall/convert it, like ...beanRef("myBean","sendToDrools").beanRef("myBean","convertDroolsResponse").... It seems like I could use the cxf component to handle some of the data transfer, but it seems like I would still need to build the drools command and convert the results. Isn't there a cleaner/better way? I've looked at the camel section in the drools integration guide, but no help. Any thoughts, best practices or references? Thanks very much, -J -- View this message in context: http://camel.465427.n5.nabble.com/Using-a-drools-server-in-a-route-tp4724999p4724999.html Sent from the Camel - Users mailing list archive at Nabble.com.