Camel integration
Spring and CDI are great frameworks for integrating Drools inside our own applications. In cases where we want to expose Drools functionality as a service to other applications, we need to start looking at frameworks that expose service endpoints. For this purpose, there is an integration component that allows us to expose Drools components through Apache Camel (http://camel.apache.o) endpoints, called Kie Camel.
Integrating the Apache Camel framework
Apache Camel is an integration framework that lets us define routes that merge together different types of services and components, using a series of predefined and market accepted patterns called Enterprise Integration Patterns (EIP). Similarly to a design pattern, an EIP allows us to define reusable, easy to understand and extensible components. The main focus of EIP is to provide simple, reusable structures to define service endpoints.
Creating our Kie endpoints
In order to use Kie Camel, the first thing we need to do is add...