My experiments with technology

Java based Phonetic Search using SoundeEx, MetaPhone, DoubleMetaPhone algorithms and String Similiarity Metrics

November 18, 2009 · Leave a Comment

I work on software projects for US based life insurance companies. One of the most common requirements is to ascertain if the applicant has bought insurance cover prior to the current application. This is an extremely important and relevant step in life insurance underwriting; an insurer would like to limit its risk exposure by limiting the total coverage amount offered per insured. Also he/she would be interested in knowing whether the person was refused insurance cover due to some adverse information. Doing a simple search on first name and last name may not reveal the right information. We could miss the insured in case the applicant changes her name from say Elizabeth to Liz or from Apoorva to Apurva. So basically we need some methodology to overcome such restrictions and find suitable  name based matches. This post covers some of the phonetic algorithms and possible techniques to further fine-tune the results.

→ Leave a CommentCategories: doublemetaphone · metaphone · phonetic-search · simmetrics · soundex
Tagged: , , , ,

Web Application Performance Tuning Tips

October 24, 2009 · 2 Comments

In my role as a Java Technical Architect, I am forced to wear different thinking hats. Some times I am a Solution Architect, Subject Matter Expert on some technology and the last few days I have been wearing the hat of performance tuning expert. Today I am going to pen down some thoughts around what a person should focus on once he or she is by design or default selected to tune an application.

Keep reading →

→ 2 CommentsCategories: performance · performance tuning · tuning
Tagged: , ,

Developing RESTful Web Services using JBoss RESTEasy

October 13, 2009 · Leave a Comment

Enterprise integration was and remains a key challenge in ensuring availability of enterprise data as a single source of truth in real time manner. Over the decades number of techniques/technologies have come and gone. We have seen EAI,JMS, Web Services, SOA etc that have contended providing true enterprise integration solutions. The latest to join this bandwagon is REST and its implementation avatar is described as RESTful Web Services. In case you are interested in understanding what REST is and how does it compare vis-a-vis SOAP, WebServices et all refer the link(URL: http://2007.xtech.org/public/asset/attachment/76) for details. This post is going to provide a ready-to-use tutorial around how to implement RESTful WebServices using JBoss RESTEasy project.

Enterprise integration was and remains a key challenge in ensuring availability of enterprise data as a single source of truth in real time manner. Over the decades number of techniques/technologies have come and gone. We have seen EAI,JMS, Web Services, SOA etc that have contended providing true enterprise integration solutions. The latest to join this bandwagon is REST and its implementation avatar is described as RESTful Web Services. In case you are interested in understanding what REST is and how does it compare vis-a-vis SOAP, WebServices et all refer the link for details. This post is going to provide a ready-to-use tutorial around how to implement RESTful WebServices using JBoss RESTEasy project.

Keep reading →

→ Leave a CommentCategories: JBoss RESTEasy · RESTEasy · RESTful WebServices
Tagged: , ,

java.util.concurrent.atomic: How to use Java Atomic Classes? AtomicInteger

August 28, 2009 · Leave a Comment

It has been some time since the release of Java 5. It introduced a number of improvements in terms of classes to handle concurrency concerns. Today I will cruising thru the java.util.concurrent.atomic package and looking at the package’s relevance in tackling real-life issues.

Keep reading →

→ Leave a CommentCategories: Uncategorized

JBoss Drools – Business Rules Management System/Guvnor

May 22, 2009 · Leave a Comment

I was playing around with the web interface of the JBoss Drools engine called Business Rules Management System or BRMS till version 4.0.7. In the subsequent versions i.e 5.0 it is called Guvnor. While trying to validate the newly defined business rule, I got the following error:

java.lang.ClassFormatError: Incompatible magic value 1885430635 in class file

A quick search on the internet revealed the answer. Please ensure that your java class jar files contain only .class files and not source code. Weird yes, but that’s how it is!

→ Leave a CommentCategories: JBoss · JBoss Drools

JBoss Drools – Defining business rules

May 20, 2009 · 2 Comments

The last two articles focused on some of the current projects that I was working on. So after kick starting Drools(4.0.7), I lost track and wrote some posts on JBoss clustering. Interesting as they were, I want to get back on defining business rules using JBoss Drools. I am just taking up from where I left off in my last Drools post. In my last post, I covered how Drools can use MS Excel spreadsheets to implement decision tables. Now I am going to talk about implementing business rules using a DRL.

The last two articles focused on some of the current projects that I was working on. So after kick starting Drools(4.0.7), I lost track and wrote some posts on JBoss clustering. Interesting as they were, I want to get back on defining business rules using JBoss Drools. I am just taking up from where I left off in my last Drools post. In my last post, I covered how Drools can use MS Excel spreadsheets to implement decision tables. Now I am going to talk about implementing business rules using a DRL. You could treat this as a tutorial.

Keep reading →

→ 2 CommentsCategories: Drools · tutorial

Configuring HA-JMS on JBoss server cluster

April 23, 2009 · 1 Comment

After setting up the HTTP/HTTPS configuration for JBoss server cluster, the next assignment on my table was to set up the HA-JMS on the server cluster.

Keep reading →

→ 1 CommentCategories: Clustering · HA-JMS · JBoss

Configuring HTTP and HTTPS clustering on JBoss Server

April 21, 2009 · 7 Comments

Some collegues of mine were facing problems getting the HTTP/HTTPS clustering setup done for JBoss server. Although I have no experience on working with JBoss I decided to give it a try.

Keep reading →

→ 7 CommentsCategories: Clustering · HTTP/HTTPS · JBoss

JBoss Drools – Decision Tables

March 28, 2009 · 6 Comments

I have been playing around with JBoss Drools(Version 4.0.7) – the open source rules engine.  JBoss supports business rules implementation using three techniques:

  1. Decision Tables
  2. Writing DRL file
  3. Defining business flow using rules flow rf file

This post is going to cover the first technique for business rules definition using Drools Decision table.

Keep reading →

→ 6 CommentsCategories: JBoss Drools