Let us assume that we have dozens of rules that we have to implement, divide into some classes, subclasses, abstractions and of course unit test. This can be difficult and time consuming to both write and support. There are many ways of dealing with this problem and following example leverages one of them - JBoss Drools.
Drools is a library specifically created for such purposes like implementing rules. It contains a rule engine that can process rules written using the Drools language (you can also provide rules in Excel spreadsheets! - perfect for Business side to support and management).
Here, we will take a look at the way one can integrate JBoss Drools with Spring.
(Reference: http://java.dzone.com/articles/drools-integration-spring-vs)
Monday, November 11, 2013
Saturday, June 22, 2013
Velocity Template with Spring
Spring Configuration:
Friday, May 3, 2013
XML to Java Conversion with Smooks
Here is a simple example of XML to Java Conversion with Smooks.
Enjoy!!
input-message.xml
Enjoy!!
input-message.xml
Wednesday, May 1, 2013
Login page for ActiveMQ using Tomcat and LDAP
ActiveMQ doesnot come with login page.But for security issues some users might want to have login page to access.
So for this I have tried to create a simple login page for ActiveMQ using Tomcat and LDAP.
You can use Database or Tomcat instead of LDAP.
Sunday, March 31, 2013
Spring Data Support
Introduction to Spring Data and Setting Up
This tutorial serves as an introduction to Spring Data support. We'll also install a lightweight database Apache Derby that we'll use in subsequent tutorials. We'll learn how to start Derby in Network server mode, and how to connect and run SQL queries using the ij client tool.
Tuesday, January 31, 2012
Read from JSON file and persist into MySQL
Here is a simple example where we are reading contents of a JSON file and inserting into MySQL database. The code is dynamic so it can handle any number of columns no matter what the column name is. All you have to do is match the database column names with JSON content.
Subscribe to:
Posts (Atom)