Book Image

Mastering JBoss Drools 6

By : Mariano De Maio, Mauricio Salatino, Esteban Aliverti
Book Image

Mastering JBoss Drools 6

By: Mariano De Maio, Mauricio Salatino, Esteban Aliverti

Overview of this book

Mastering JBoss Drools 6 will provide you with the knowledge to develop applications involving complex scenarios. You will learn how to use KIE modules to create and execute Business Rules, and how the PHREAK algorithm internally works to drive the Rule Engine decisions. This book will also cover the relationship between Drools and jBPM, which allows you to enrich your applications by using Business Processes. You will be briefly introduced to the concept of complex event processing (Drools CEP) where you will learn how to aggregate and correlate your data based on temporal conditions. You will also learn how to define rules using domain-specific languages, such as spreadsheets, database entries, PMML, and more. Towards the end, this book will take you through the integration of Drools with the Spring and Camel frameworks for more complex applications.
Table of Contents (18 chapters)
Mastering JBoss Drools 6
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

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...