Connecting Drools 5.6 to Camel to Fire Rules on Distributed Knowledge Sessions

Objective In this post we are going to create a Drools Stateful Knowledge Session and bind it to a JNDI address. We will then use Camel to fire all the rules in that session. This is useful where we wish to have multiple Knowledge Sessions on multiple servers. This example uses the Drools Grid -... Continue Reading →

Retrieving Local Files from a JMS Queue

In this example, we will retrieve the messages we put on the message queue in post Sending Local Files to a JMS Queue and stored them locally. Edit JMSCopier.java Add the retrieveFileFromJMS method to the JMSCopier class as follows: JMSCopier.java Edit JMSCopierTest.java Add the method testRetrieveLocalFilesFromJMSQueue to the JMSCopierTest class as follows: JMSCopierTest.java Note, you will... Continue Reading →

Copying Files using Camel

This post continues on from Copying Files Using Java Edit FileCopier.java Edit the file FileCopier.java to add a new copyFile method, giving the following code FileCopier.java Edit FileCopierTest.java Edit the FileCopierTest.java code to add a second Test Case as follows: FileCopierTest.java Remember to change your inputPath and outputPath to match your own filesystem. Run the... Continue Reading →

Up ↑

%d bloggers like this: